diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets index 206246e5f6dd..44bf29123ff1 100644 --- a/AzurePowershell.Test.targets +++ b/AzurePowershell.Test.targets @@ -22,7 +22,7 @@ .\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll .\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll .\src\ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\bin\Debug\Microsoft.Azure.Commands.OperationalInsights.Test.dll - .\src\ResourceManager\Batch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll + .\src\ResourceManager\AzureBatch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll .\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll .\src\ServiceManagement\RemoteApp\Commands.RemoteApp.Test\bin\Debug\Microsoft.Azure.Commands.RemoteApp.Tests.dll .\src\ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Test.dll @@ -56,7 +56,7 @@ - + diff --git a/ChangeLog.md b/ChangeLog.md index db47c5a55de2..9e97c0149675 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,50 @@ +## 2015.08.17 version 0.9.7 +* Azure Profile cmdlets + * New-AzureProfile + * Added parameter set for empty profile + * Fixed issues with AAD aithentication when constructing profile + * Enabled passing results of Add-AzureEnvironment to New-AzureProfile -Environment parameter +* Azure ResourceManager cmdlets + * New-AzureResourceGroupDeployment: Added Mode (deployment mode) and Force parameters + * Get-AzureProviderOperation: API changes to improve performance +* Azure Compute (ARM) Cmdlets + * Fixes for Set-AzureDeployment with -ExtensionConfiguration + * Fixes for Set-AzureVMCustomExtension cmdlets + * Deprecated cmdlets Get-AzureVMImageDetail and Get-AzureVMExtentionImageDetail +* Azure Compute (Service Management) cmdlets + * Publish-AzureVMDSCConfiguration: Added additional configuration parameters +* Azure Network (ARM) cmdlets + * Added help for Route Table cmdlets +* Azure Storage cmdlets + * Added support for downloading, uploading, and copying append blob + * Added support for asynchronous copying to and from cloud file + * Added azure service CORS management +* Azure Sql (ARM) Cmdlets + * Fixed issues with ElascitPool cmdlets +* AzureBatch cmdlets + * Added Batch autoscale cmdlets Enable-AzureBatchAutoScale, Disable-AzureBatchAutoScale +* RemoteApp cmdlets + * 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 * Cmdlets updated to use the general availability API. See http://blogs.technet.com/b/windowshpc/archive/2015/07/10/what-39-s-new-in-azure-batch-july-release-general-availability.aspx @@ -15,7 +62,6 @@ * Fix Publish Extension cmdlets. * Update CustomScript cmdlet for SAS Uri. * Update help file. - * Get, Set and Remove Azure Powershell commandlets for IaaS V2 VM. * Azure Data Factory * Rename Table to Dataset. * Azure SQL diff --git a/setup/azurecmd.wxs b/setup/azurecmd.wxs index e04b69637b57..b8fb150f45b0 100644 --- a/setup/azurecmd.wxs +++ b/setup/azurecmd.wxs @@ -5,7 +5,7 @@ - + diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index ed142484e367..1343534e150d 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -204,6 +204,9 @@ + + + @@ -544,93 +547,81 @@ - - - - - - - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - + + @@ -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 @@ + + + @@ -2018,6 +1979,9 @@ + + + @@ -2035,15 +1999,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2053,6 +2044,15 @@ + + + + + + + + + @@ -2089,6 +2089,12 @@ + + + + + + @@ -2104,6 +2110,9 @@ + + + @@ -3218,15 +3227,6 @@ - - - - - - - - - @@ -3344,9 +3344,6 @@ - - - @@ -4685,15 +4682,6 @@ - - - - - - - - - @@ -4745,9 +4733,6 @@ - - - @@ -4820,6 +4805,7 @@ + @@ -4923,35 +4909,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4970,6 +4952,7 @@ + @@ -5127,9 +5110,6 @@ - - - @@ -5142,7 +5122,6 @@ - @@ -5176,9 +5155,6 @@ - - - @@ -5188,7 +5164,6 @@ - @@ -5211,9 +5186,6 @@ - - - @@ -5230,7 +5202,6 @@ - @@ -5238,6 +5209,7 @@ + @@ -5396,17 +5368,30 @@ + + + + + + + + + + + + + @@ -5419,11 +5404,14 @@ + + + @@ -5786,9 +5774,6 @@ - - - @@ -5828,7 +5813,6 @@ - @@ -6249,9 +6233,6 @@ - - - @@ -6269,7 +6250,6 @@ - diff --git a/src/AzurePowershell.sln b/src/AzurePowershell.sln index 78a3335959cb..afe5a4118fc3 100644 --- a/src/AzurePowershell.sln +++ b/src/AzurePowershell.sln @@ -134,9 +134,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache", "Reso EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache.Test", "ResourceManager\RedisCache\Commands.RedisCache.Test\Commands.RedisCache.Test.csproj", "{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch", "ResourceManager\Batch\Commands.Batch\Commands.Batch.csproj", "{D470E50A-9607-48D6-A924-4F9F86502704}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch", "ResourceManager\AzureBatch\Commands.Batch\Commands.Batch.csproj", "{D470E50A-9607-48D6-A924-4F9F86502704}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch.Test", "ResourceManager\Batch\Commands.Batch.Test\Commands.Batch.Test.csproj", "{F4ABAD68-64A5-4B23-B09C-42559A7524DE}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch.Test", "ResourceManager\AzureBatch\Commands.Batch.Test\Commands.Batch.Test.csproj", "{F4ABAD68-64A5-4B23-B09C-42559A7524DE}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ServiceManagement.Network", "ServiceManagement\Network\Commands.Network\Commands.ServiceManagement.Network.csproj", "{40FEE0BB-FD45-4EFC-85BC-0D602A6892C4}" EndProject diff --git a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj index 4bffe1aba9a9..2cac1e4b0bbd 100644 --- a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj +++ b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj @@ -66,7 +66,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/Common/Commands.Common.Storage/packages.config b/src/Common/Commands.Common.Storage/packages.config index b56918c5a130..f2ebb79ce6b4 100644 --- a/src/Common/Commands.Common.Storage/packages.config +++ b/src/Common/Commands.Common.Storage/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.Common.Test/Commands.Common.Test.csproj b/src/Common/Commands.Common.Test/Commands.Common.Test.csproj index 3b7a1393492a..04be930b6358 100644 --- a/src/Common/Commands.Common.Test/Commands.Common.Test.csproj +++ b/src/Common/Commands.Common.Test/Commands.Common.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/Common/Commands.Common.Test/packages.config b/src/Common/Commands.Common.Test/packages.config index c7b1bd97af32..705bcc0a0611 100644 --- a/src/Common/Commands.Common.Test/packages.config +++ b/src/Common/Commands.Common.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.Common/AzurePowerShell.cs b/src/Common/Commands.Common/AzurePowerShell.cs index 4a733b169ca3..bedbdfe79baa 100644 --- a/src/Common/Commands.Common/AzurePowerShell.cs +++ b/src/Common/Commands.Common/AzurePowerShell.cs @@ -27,9 +27,9 @@ public class AzurePowerShell public const string AssemblyCopyright = "Copyright © Microsoft"; - public const string AssemblyVersion = "0.9.6"; + public const string AssemblyVersion = "0.9.7"; - public const string AssemblyFileVersion = "0.9.6"; + public const string AssemblyFileVersion = "0.9.7"; public const string ProfileFile = "AzureProfile.json"; diff --git a/src/Common/Commands.Common/Commands.Common.csproj b/src/Common/Commands.Common/Commands.Common.csproj index f593730325d3..2483d0c2e001 100644 --- a/src/Common/Commands.Common/Commands.Common.csproj +++ b/src/Common/Commands.Common/Commands.Common.csproj @@ -68,7 +68,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/Common/Commands.Common/packages.config b/src/Common/Commands.Common/packages.config index 196cee0c4d8d..abdfbbed145e 100644 --- a/src/Common/Commands.Common/packages.config +++ b/src/Common/Commands.Common/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/Common/Commands.Profile/Commands.Profile.csproj b/src/Common/Commands.Profile/Commands.Profile.csproj index cb69741e46cc..f40f5ff69182 100644 --- a/src/Common/Commands.Profile/Commands.Profile.csproj +++ b/src/Common/Commands.Profile/Commands.Profile.csproj @@ -62,7 +62,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/Common/Commands.Profile/packages.config b/src/Common/Commands.Profile/packages.config index b4a710776ebc..653d89f6ed0b 100644 --- a/src/Common/Commands.Profile/packages.config +++ b/src/Common/Commands.Profile/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj b/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj index b36d1111401a..4d6f265b39e5 100644 --- a/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj +++ b/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj @@ -55,7 +55,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/Common/Commands.ScenarioTest/packages.config b/src/Common/Commands.ScenarioTest/packages.config index 53da7b2da613..2ff11273c825 100644 --- a/src/Common/Commands.ScenarioTest/packages.config +++ b/src/Common/Commands.ScenarioTest/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj index ca0fe4d9c269..0a021c9182e4 100644 --- a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj +++ b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj @@ -54,7 +54,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/Common/Commands.ScenarioTests.Common/packages.config b/src/Common/Commands.ScenarioTests.Common/packages.config index 7d12141e37b7..c905cbbbdb5a 100644 --- a/src/Common/Commands.ScenarioTests.Common/packages.config +++ b/src/Common/Commands.ScenarioTests.Common/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj index 4691f12d9df4..f0170c00d250 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj @@ -72,7 +72,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config index 982a18f9d94e..9a5e820371eb 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj index c65829bcde28..d2a09f55c46c 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config index 41dc79623a6c..94b4bd587827 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj index 26c834415061..b617d2252223 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj @@ -71,7 +71,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config index 982a18f9d94e..9a5e820371eb 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj index 605ebfb7a4b4..351bccf6e609 100644 --- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj +++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config index 5637fb1b72db..3012e66b5419 100644 --- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj index 52849def3b4d..4f40978789d4 100644 --- a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj +++ b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config index 08124b8e090e..31f4e44d7722 100644 --- a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config +++ b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj b/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj index 585441f1d221..c9ff00b63ad3 100644 --- a/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj +++ b/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Automation/Commands.Automation/packages.config b/src/ResourceManager/Automation/Commands.Automation/packages.config index bcfebd8b3501..0b329390e4e1 100644 --- a/src/ResourceManager/Automation/Commands.Automation/packages.config +++ b/src/ResourceManager/Automation/Commands.Automation/packages.config @@ -5,7 +5,7 @@ - + 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..3088c89b2dcd 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj @@ -39,13 +39,13 @@ 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 - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll @@ -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..347d88dceca1 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config @@ -4,8 +4,8 @@ - - + + 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..786c156e036e 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj @@ -56,13 +56,13 @@ ..\..\..\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 - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll @@ -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..2d0042531dd2 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config @@ -4,8 +4,8 @@ - - + + diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/GetBatchAccountCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/GetBatchAccountCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/GetBatchAccountKeysCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountKeysCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/GetBatchAccountKeysCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/GetBatchAccountKeysCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/NewBatchAccountCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/RegenBatchAccountKeyCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RegenBatchAccountKeyCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/RegenBatchAccountKeyCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RegenBatchAccountKeyCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/RemoveBatchAccountCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RemoveBatchAccountCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/RemoveBatchAccountCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/RemoveBatchAccountCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Accounts/SetBatchAccountCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj similarity index 89% rename from src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj index 30339354eda7..46099a6a1074 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj @@ -67,9 +67,8 @@ ..\..\..\packages\Microsoft.Azure.Management.Batch.1.4.0\lib\net40\Microsoft.Azure.Management.Batch.dll - - False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -117,10 +116,6 @@ False ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll - - False - ..\..\..\packages\Hydra.SpecTestSupport.1.0.5417.13285-prerelease\lib\net45\Microsoft.WindowsAzure.Testing.dll - ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll @@ -167,18 +162,28 @@ + + + + + + + + + + @@ -268,6 +273,18 @@ Always + + Always + + + Always + + + Always + + + Always + Always @@ -337,6 +354,9 @@ Always + + Always + Always @@ -358,6 +378,9 @@ Always + + Always + Always @@ -376,12 +399,36 @@ Always + + Always + + + Always + Always Always + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + Always diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs new file mode 100644 index 000000000000..7d17d9891e8e --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class ResetBatchComputeNodeCommandTests + { + private ResetBatchComputeNodeCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public ResetBatchComputeNodeCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new ResetBatchComputeNodeCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ResetBatchComputeNodeParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "computeNode1"; + + // Don't go to the service on a Reimage ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeReimageResponse response = new ComputeNodeReimageResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ResetComputeNodeRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + cmdlet.PoolId = "testPool"; + cmdlet.Id = "computeNode1"; + cmdlet.ReimageOption = ComputeNodeReimageOption.Terminate; + + ComputeNodeReimageOption? requestReimageOption = null; + + // Don't go to the service on a Reimage ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + requestReimageOption = request.TypedParameters.ComputeNodeReimageOption; + + ComputeNodeReimageResponse response = new ComputeNodeReimageResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the reimage option was properly set on the outgoing request + Assert.Equal(cmdlet.ReimageOption, requestReimageOption); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs new file mode 100644 index 000000000000..76a184a3588c --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class RestartBatchComputeNodeCommandTests + { + private RestartBatchComputeNodeCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public RestartBatchComputeNodeCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new RestartBatchComputeNodeCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void RestartBatchComputeNodeParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "computeNode1"; + + // Don't go to the service on a Reboot ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeRebootResponse response = new ComputeNodeRebootResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void RestartComputeNodeRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + cmdlet.PoolId = "testPool"; + cmdlet.Id = "computeNode1"; + cmdlet.RebootOption = ComputeNodeRebootOption.Terminate; + + ComputeNodeRebootOption? requestRebootOption = null; + + // Don't go to the service on a Reboot ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + requestRebootOption = request.TypedParameters.ComputeNodeRebootOption; + + ComputeNodeRebootResponse response = new ComputeNodeRebootResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the reboot option was properly set on the outgoing request + Assert.Equal(cmdlet.RebootOption, requestRebootOption); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs new file mode 100644 index 000000000000..88fac985d10a --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class DisableBatchJobScheduleCommandTests + { + private DisableBatchJobScheduleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public DisableBatchJobScheduleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new DisableBatchJobScheduleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobScheduleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJobSchedule"; + + // Don't go to the service on a Disable CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleDisableResponse response = new CloudJobScheduleDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs new file mode 100644 index 000000000000..f55c3ca3f056 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class EnableBatchJobScheduleCommandTests + { + private EnableBatchJobScheduleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public EnableBatchJobScheduleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new EnableBatchJobScheduleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableJobScheduleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJobSchedule"; + + // Don't go to the service on an Enable CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleEnableResponse response = new CloudJobScheduleEnableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs new file mode 100644 index 000000000000..963b508c228e --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs @@ -0,0 +1,117 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class DisableBatchJobCommandTests + { + private DisableBatchJobCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public DisableBatchJobCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new DisableBatchJobCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJob"; + cmdlet.DisableJobOption = DisableJobOption.Terminate; + + // Don't go to the service on a Disable CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobDisableResponse response = new CloudJobDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + DisableJobOption disableOption = DisableJobOption.Terminate; + DisableJobOption requestDisableOption = DisableJobOption.Requeue; + + cmdlet.Id = "testJob"; + cmdlet.DisableJobOption = disableOption; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestDisableOption = request.TypedParameters.DisableJobOption; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobDisableResponse response = new CloudJobDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the job disable option was properly set on the outgoing request + Assert.Equal(disableOption, requestDisableOption); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs new file mode 100644 index 000000000000..be930f5f878b --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class EnableBatchJobCommandTests + { + private EnableBatchJobCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public EnableBatchJobCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new EnableBatchJobCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableJobParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJob"; + + // Don't go to the service on an Enable CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobEnableResponse response = new CloudJobEnableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/MSSharedLibKey.snk b/src/ResourceManager/AzureBatch/Commands.Batch.Test/MSSharedLibKey.snk similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/MSSharedLibKey.snk rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/MSSharedLibKey.snk diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Models/BatchAccountContextTest.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Models/BatchAccountContextTest.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/DisableBatchAutoScaleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/DisableBatchAutoScaleCommandTests.cs new file mode 100644 index 000000000000..54663a08cda4 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/DisableBatchAutoScaleCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class DisableBatchAutoScaleCommandTests + { + private DisableBatchAutoScaleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public DisableBatchAutoScaleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new DisableBatchAutoScaleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableAutoScaleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testPool"; + + // Don't go to the service on an Disable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolDisableAutoScaleResponse response = new CloudPoolDisableAutoScaleResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/EnableBatchAutoScaleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/EnableBatchAutoScaleCommandTests.cs new file mode 100644 index 000000000000..68ee2e11da26 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/EnableBatchAutoScaleCommandTests.cs @@ -0,0 +1,119 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class EnableBatchAutoScaleCommandTests + { + private EnableBatchAutoScaleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public EnableBatchAutoScaleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new EnableBatchAutoScaleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableAutoScaleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.AutoScaleFormula = "formula"; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolEnableAutoScaleResponse response = new CloudPoolEnableAutoScaleResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableAutoScaleRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + string formula = "$TargetDedicated=2"; + string requestFormula = null; + + cmdlet.Id = "testPool"; + cmdlet.AutoScaleFormula = formula; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestFormula = request.TypedParameters.AutoScaleFormula; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolEnableAutoScaleResponse response = new CloudPoolEnableAutoScaleResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the autoscale formula was properly set on the outgoing request + Assert.Equal(formula, requestFormula); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs new file mode 100644 index 000000000000..99ce0b58efd3 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs @@ -0,0 +1,119 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class SetBatchPoolOSVersionCommandTests + { + private SetBatchPoolOSVersionCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public SetBatchPoolOSVersionCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new SetBatchPoolOSVersionCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void SetPoolOSVersionParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.TargetOSVersion = "targetOS"; + + // Don't go to the service on an Upgrage OS call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolUpgradeOSResponse response = new CloudPoolUpgradeOSResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void SetPoolOSVersionRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + string targetOS = "targetOS"; + string requestTargetOS = null; + + cmdlet.Id = "testPool"; + cmdlet.TargetOSVersion = targetOS; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestTargetOS = request.TypedParameters.TargetOSVersion; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolUpgradeOSResponse response = new CloudPoolUpgradeOSResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the target OS was properly set on the outgoing request + Assert.Equal(targetOS, requestTargetOS); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/TestBatchAutoScaleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/TestBatchAutoScaleCommandTests.cs new file mode 100644 index 000000000000..9a4adc20a634 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/TestBatchAutoScaleCommandTests.cs @@ -0,0 +1,119 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class TestBatchAutoScaleCommandTests + { + private TestBatchAutoScaleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public TestBatchAutoScaleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new TestBatchAutoScaleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAutoScaleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.AutoScaleFormula = "formula"; + + // Don't go to the service on an Evaluate AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolEvaluateAutoScaleResponse response = new CloudPoolEvaluateAutoScaleResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAutoScaleRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + string formula = "$TargetDedicated=2"; + string requestFormula = null; + + cmdlet.Id = "testPool"; + cmdlet.AutoScaleFormula = formula; + + // Don't go to the service on an Evaluate AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestFormula = request.TypedParameters.AutoScaleFormula; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolEvaluateAutoScaleResponse response = new CloudPoolEvaluateAutoScaleResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the autoscale formula was properly set on the outgoing request + Assert.Equal(formula, requestFormula); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Properties/AssemblyInfo.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.ps1 similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchAccountTests.ps1 diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchController.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchController.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/BatchController.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchController.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/Common.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/Common.ps1 similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/Common.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/Common.ps1 diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs similarity index 59% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs index 51c28d77cd9d..37b2ac826a94 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs @@ -103,6 +103,70 @@ public void TestListComputeNodePipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRebootComputeNodeById() + { + TestRebootComputeNode(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRebootComputeNodePipeline() + { + TestRebootComputeNode(true); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestReimageComputeNodeById() + { + TestReimageComputeNode(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestReimageComputeNodePipeline() + { + TestReimageComputeNode(true); + } + + private void TestRebootComputeNode(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-RebootComputeNode '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + ScenarioTestHelpers.WaitForIdleComputeNode(controller, context, poolId, computeNodeId); + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestRebootComputeNodePipeline" : "TestRebootComputeNodeById"); + } + + private void TestReimageComputeNode(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ReimageComputeNode '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + ScenarioTestHelpers.WaitForIdleComputeNode(controller, context, poolId, computeNodeId); + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestReimageComputeNodePipeline" : "TestReimageComputeNodeById"); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -115,4 +179,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Restart, "AzureBatchComputeNode_ST", DefaultParameterSetName = Constants.IdParameterSet)] + public class RestartBatchComputeNodeScenarioTestCommand : RestartBatchComputeNodeCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsCommon.Reset, "AzureBatchComputeNode_ST", DefaultParameterSetName = Constants.IdParameterSet)] + public class ResetBatchComputeNodeScenarioTestCommand : ResetBatchComputeNodeCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 similarity index 70% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 index b958e463f5cd..34ead7348f91 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 @@ -115,4 +115,56 @@ function Test-ListComputeNodePipeline $computeNodes = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Get-AzureBatchComputeNode_ST -BatchContext $context Assert-AreEqual $count $computeNodes.Count +} + +<# +.SYNOPSIS +Tests rebooting a compute node +#> +function Test-RebootComputeNode +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + $rebootOption = ([Microsoft.Azure.Batch.Common.ComputeNodeRebootOption]::Terminate) + + if ($usePipeline -eq '1') + { + Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context | Restart-AzureBatchComputeNode_ST -RebootOption $rebootOption -BatchContext $context + } + else + { + Restart-AzureBatchComputeNode_ST $poolId $computeNodeId -RebootOption $rebootOption -BatchContext $context + } + + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Filter "id eq '$computeNodeId'" -BatchContext $context + + Assert-AreEqual 'Rebooting' $computeNode.State +} + +<# +.SYNOPSIS +Tests reimaging a compute node +#> +function Test-ReimageComputeNode +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + $reimageOption = ([Microsoft.Azure.Batch.Common.ComputeNodeReimageOption]::Terminate) + + if ($usePipeline -eq '1') + { + Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context | Reset-AzureBatchComputeNode_ST -ReimageOption $reimageOption -BatchContext $context + } + else + { + Reset-AzureBatchComputeNode_ST $poolId $computeNodeId -ReimageOption $reimageOption -BatchContext $context + } + + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Filter "id eq '$computeNodeId'" -BatchContext $context + + Assert-AreEqual 'Reimaging' $computeNode.State } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/FileTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/FileTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs similarity index 84% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs index e0db254cad21..fbcc0ce43708 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs @@ -183,6 +183,29 @@ public void TestDeleteJobSchedulePipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAndEnableJobSchedule() + { + BatchController controller = BatchController.NewInstance; + string jobScheduleId = "testDisableEnableJobSchedule"; + + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAndEnableJobSchedule '{0}' '{1}' '1'", accountName, jobScheduleId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, null); + }, + () => + { + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -215,4 +238,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Enable, "AzureBatchJobSchedule_ST")] + public class EnableBatchJobScheduleScenarioTestCommand : EnableBatchJobScheduleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsLifecycle.Disable, "AzureBatchJobSchedule_ST")] + public class DisableBatchJobScheduleScenarioTestCommand : DisableBatchJobScheduleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 similarity index 93% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 index 4a9d75364c82..21e0947eb889 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 @@ -354,4 +354,40 @@ function Test-DeleteJobSchedule # Verify the job schedule was deleted $jobSchedules = Get-AzureBatchJobSchedule_ST -BatchContext $context Assert-True { $jobSchedules -eq $null -or $jobSchedules[0].State.ToString().ToLower() -eq 'deleting' } +} + +<# +.SYNOPSIS +Tests disabling and enabling a job schedule +#> +function Test-DisableAndEnableJobSchedule +{ + param([string]$accountName, [string]$jobScheduleId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + # Verify the job schedule is Active + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State + + Disable-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + + # Verify the job schedule was Disabled + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Disabled' $jobSchedule.State + + Enable-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + + # Verify the job schedule is again Active + $jobSchedule = Get-AzureBatchJobSchedule_ST -Filter "id eq '$jobScheduleId'" -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State + + # Verify using the pipeline + $jobSchedule | Disable-AzureBatchJobSchedule_ST -BatchContext $context + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Disabled' $jobSchedule.State + + $jobSchedule | Enable-AzureBatchJobSchedule_ST -BatchContext $context + $jobSchedule = Get-AzureBatchJobSchedule_ST -Filter "id eq '$jobScheduleId'" -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs similarity index 87% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs index df8b6eaa7331..a273df84216a 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs @@ -220,6 +220,29 @@ public void TestDeleteJobPipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAndEnableJob() + { + BatchController controller = BatchController.NewInstance; + string jobId = "testDisableEnableJob"; + + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAndEnableJob '{0}' '{1}' '1'", accountName, jobId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + }, + () => + { + ScenarioTestHelpers.DeleteJob(controller, context, jobId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -252,4 +275,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Enable, "AzureBatchJob_ST")] + public class EnableBatchJobScenarioTestCommand : EnableBatchJobCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsLifecycle.Disable, "AzureBatchJob_ST")] + public class DisableBatchJobScenarioTestCommand : DisableBatchJobCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 similarity index 93% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 index 585b0231df5c..cba2f55693c4 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 @@ -351,4 +351,40 @@ function Test-DeleteJob # Verify the job was deleted $jobs = Get-AzureBatchJob_ST -BatchContext $context Assert-True { $jobs -eq $null -or $jobs[0].State.ToString().ToLower() -eq 'deleting' } +} + +<# +.SYNOPSIS +Tests disabling and enabling a job +#> +function Test-DisableAndEnableJob +{ + param([string]$accountName, [string]$jobId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + # Verify the job is Active + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Active' $job.State + + Disable-AzureBatchJob_ST $jobId Terminate -BatchContext $context + + # Verify the job was Disabled + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Disabled' $job.State + + Enable-AzureBatchJob_ST $jobId -BatchContext $context + + # Verify the job is again active + $job = Get-AzureBatchJob_ST -Filter "id eq '$jobId'" -BatchContext $context + Assert-AreEqual 'Active' $job.State + + # Verify using the pipeline + $job | Disable-AzureBatchJob_ST -DisableJobOption Terminate -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Disabled' $job.State + + $job | Enable-AzureBatchJob_ST -BatchContext $context + $job = Get-AzureBatchJob_ST -Filter "id eq '$jobId'" -BatchContext $context + Assert-AreEqual 'Active' $job.State } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs similarity index 61% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs index c6cff37c5b22..6f5d5769f890 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs @@ -260,6 +260,164 @@ public void TestStopResizePoolByPipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestEnableAutoScaleById() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-EnableAutoScale '{0}' '{1}' '0'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + () => + { + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestEnableAutoScaleByPipeline() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-EnableAutoScale '{0}' '{1}' '1'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + () => + { + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAutoScaleById() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAutoScale '{0}' '{1}' '0'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.EnableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAutoScaleByPipeline() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAutoScale '{0}' '{1}' '1'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.EnableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestEvaluateAutoScaleById() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-EvaluateAutoScale '{0}' '{1}' '0'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.EnableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + () => + { + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestEvaluateAutoScaleByPipeline() + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-EvaluateAutoScale '{0}' '{1}' '1'", commonAccountName, testPoolId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + ScenarioTestHelpers.EnableAutoScale(controller, context, testPoolId); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); + }, + () => + { + ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestChangeOSVersionById() + { + TestChangeOSVersion(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestChangeOSVersionPipeline() + { + TestChangeOSVersion(true); + } + + private void TestChangeOSVersion(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string newTargetOSVersion = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ChangeOSVersion '{0}' '{1}' '{2}' '{3}'", commonAccountName, testPoolId, newTargetOSVersion, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + string currentTargetOSVersion = ScenarioTestHelpers.WaitForOSVersionChange(controller, context, testPoolId); + newTargetOSVersion = currentTargetOSVersion == "*" ? "WA-GUEST-OS-4.20_201505-01" : "*"; + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestChangeOSVersionPipeline" : "TestChangeOSVersionById"); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -312,4 +470,44 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Enable, "AzureBatchAutoScale_ST")] + public class EnableBatchAutoScaleScenarioTestCommand : EnableBatchAutoScaleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsLifecycle.Disable, "AzureBatchAutoScale_ST")] + public class DisableBatchAutoScaleScenarioTestCommand : DisableBatchAutoScaleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsDiagnostic.Test, "AzureBatchAutoScale_ST")] + public class TestBatchAutoScaleScenarioTestCommand : TestBatchAutoScaleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsCommon.Set, "AzureBatchPoolOSVersion_ST")] + public class SetBatchPoolOSVersionScenarioTestCommand : SetBatchPoolOSVersionCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 similarity index 74% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 index b544fe8ee258..2d1d35ca8e68 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 @@ -282,4 +282,120 @@ function Test-StopResizePoolByPipeline # Verify the AllocationState changed to Stopping $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context Assert-AreEqual 'Stopping' $pool.AllocationState +} + +<# +.SYNOPSIS +Tests enabling autoscale +#> +function Test-EnableAutoScale +{ + param([string]$accountName, [string]$poolId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys $accountName + + $formula = '$TargetDedicated=2' + + # Verify pool starts with autoscale disabled + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-False { $pool.AutoScaleEnabled } + + if ($usePipeline -eq '1') + { + Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Enable-AzureBatchAutoScale_ST -AutoScaleFormula $formula -BatchContext $context + } + else + { + Enable-AzureBatchAutoScale_ST $poolId $formula -BatchContext $context + } + + # Verify that autoscale was enabled. + # Use a filter because it seems that the recorder sometimes gets confused when two identical URLs are sent too close together + $pool = Get-AzureBatchPool_ST -Filter "id eq '$poolId'" -BatchContext $context + Assert-True { $pool.AutoScaleEnabled } +} + +<# +.SYNOPSIS +Tests disabling autoscale +#> +function Test-DisableAutoScale +{ + param([string]$accountName, [string]$poolId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys $accountName + + # Verify pool starts with autoscale enabled + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-True { $pool.AutoScaleEnabled } + + if ($usePipeline -eq '1') + { + Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Disable-AzureBatchAutoScale_ST -BatchContext $context + } + else + { + Disable-AzureBatchAutoScale_ST $poolId -BatchContext $context + } + + # Verify that autoscale was disabled + # Use a filter because it seems that the recorder sometimes gets confused when two identical URLs are sent too close together + $pool = Get-AzureBatchPool_ST -Filter "id eq '$poolId'" -BatchContext $context + Assert-False { $pool.AutoScaleEnabled } +} + +<# +.SYNOPSIS +Tests evaluating an autoscale formula +#> +function Test-EvaluateAutoScale +{ + param([string]$accountName, [string]$poolId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys $accountName + + $formula = '$TargetDedicated=2' + + # Verify pool starts with autoscale enabled + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-True { $pool.AutoScaleEnabled } + + if ($usePipeline -eq '1') + { + $evalResult = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Test-AzureBatchAutoScale_ST -AutoScaleFormula $formula -BatchContext $context + } + else + { + $evalResult = Test-AzureBatchAutoScale_ST $poolId $formula -BatchContext $context + } + + # Verify that the evaluation result matches expectation + Assert-True { $evalResult.AutoScaleRun.Results.Contains($formula) } +} + +<# +.SYNOPSIS +Tests changing the pool OS version +#> +function Test-ChangeOSVersion +{ + param([string]$accountName, [string]$poolId, [string]$targetOSVersion, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys $accountName + + # Verify that we start with a different target OS + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-AreNotEqual $targetOSVersion $pool.TargetOSVersion + + if ($usePipeline -eq '1') + { + Get-AzureBatchPool_ST -Filter "id eq '$poolId'" -BatchContext $context | Set-AzureBatchPoolOSVersion_ST -TargetOSVersion $targetOSVersion -BatchContext $context + } + else + { + Set-AzureBatchPoolOSVersion_ST $poolId $targetOSVersion -BatchContext $context + } + + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-AreEqual $targetOSVersion $pool.TargetOSVersion } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs similarity index 84% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs index f789b50f649a..6637f00829fe 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs @@ -112,6 +112,53 @@ public static void CreateTestPool(BatchController controller, BatchAccountContex client.CreatePool(parameters); } + public static void EnableAutoScale(BatchController controller, BatchAccountContext context, string poolId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + string formula = "$TargetDedicated=2"; + AutoScaleParameters parameters = new AutoScaleParameters(context, poolId, null, formula, behaviors); + client.EnableAutoScale(parameters); + } + + public static void DisableAutoScale(BatchController controller, BatchAccountContext context, string poolId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + PoolOperationParameters parameters = new PoolOperationParameters(context, poolId, null, behaviors); + client.DisableAutoScale(parameters); + } + + public static string WaitForOSVersionChange(BatchController controller, BatchAccountContext context, string poolId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + ListPoolOptions options = new ListPoolOptions(context, behaviors) + { + PoolId = poolId + }; + + DateTime timeout = DateTime.Now.AddMinutes(2); + PSCloudPool pool = client.ListPools(options).First(); + while (pool.CurrentOSVersion != pool.TargetOSVersion) + { + if (DateTime.Now > timeout) + { + throw new TimeoutException("Timed out waiting for active state pool"); + } + Sleep(5000); + pool = client.ListPools(options).First(); + } + + return pool.TargetOSVersion; + } + public static void WaitForSteadyPoolAllocation(BatchController controller, BatchAccountContext context, string poolId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); @@ -350,6 +397,34 @@ public static string GetComputeNodeId(BatchController controller, BatchAccountCo return client.ListComputeNodes(options).First().Id; } + /// + /// Waits for a compute node to get to the idle state + /// + public static void WaitForIdleComputeNode(BatchController controller, BatchAccountContext context, string poolId, string computeNodeId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + ListComputeNodeOptions options = new ListComputeNodeOptions(context, poolId, null, behaviors) + { + ComputeNodeId = computeNodeId + }; + + DateTime timeout = DateTime.Now.AddMinutes(2); + PSComputeNode computeNode = client.ListComputeNodes(options).First(); + if (computeNode.State != ComputeNodeState.Idle) + { + if (DateTime.Now > timeout) + { + throw new TimeoutException("Timed out waiting for idle compute node"); + } + + Sleep(5000); + computeNode = client.ListComputeNodes(options).First(); + } + } + /// /// Creates a test user for use in Scenario tests. /// diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/TaskTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/TaskTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestBatchAccountKeys.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestBatchAccountKeys.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestBatchAccountKeys.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestBatchAccountKeys.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateAndRemoveBatchAccountViaPiping.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateAndRemoveBatchAccountViaPiping.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateAndRemoveBatchAccountViaPiping.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateAndRemoveBatchAccountViaPiping.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateExistingBatchAccount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateExistingBatchAccount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateExistingBatchAccount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreateExistingBatchAccount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreatesNewBatchAccount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreatesNewBatchAccount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreatesNewBatchAccount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestCreatesNewBatchAccount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetBatchAccountsUnderResourceGroups.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetBatchAccountsUnderResourceGroups.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetBatchAccountsUnderResourceGroups.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetBatchAccountsUnderResourceGroups.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetNonExistingBatchAccount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetNonExistingBatchAccount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetNonExistingBatchAccount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestGetNonExistingBatchAccount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestUpdatesExistingBatchAccount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestUpdatesExistingBatchAccount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestUpdatesExistingBatchAccount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchAccountTests/TestUpdatesExistingBatchAccount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json new file mode 100644 index 000000000000..087af81c1bf0 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json @@ -0,0 +1,644 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "x-ms-correlation-request-id": [ + "e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164457Z:e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "80de9332-30b2-4211-9625-0dfb7227720d" + ], + "x-ms-correlation-request-id": [ + "80de9332-30b2-4211-9625-0dfb7227720d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164459Z:80de9332-30b2-4211-9625-0dfb7227720d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:44:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "781e4353-c489-40f3-bd97-c246fc0effed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "x-ms-correlation-request-id": [ + "2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164458Z:2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:57 GMT" + ], + "ETag": [ + "0x8D2A7232FAECE7A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "87ce9618-b76e-4306-87e1-b78039154f5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "x-ms-correlation-request-id": [ + "aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164500Z:aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "ETag": [ + "0x8D2A7233090EBCA" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a0dfc0a3-110c-4bc3-b69d-445c2d3778e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "edf499c2-6835-4405-9006-6ab934a5f755" + ], + "x-ms-correlation-request-id": [ + "edf499c2-6835-4405-9006-6ab934a5f755" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164458Z:edf499c2-6835-4405-9006-6ab934a5f755" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a3ebe236-e97b-49ce-abaf-8d058f49fcad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "x-ms-correlation-request-id": [ + "1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164500Z:1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d34bb408-6545-4eaa-b051-18f5dbaa44fb" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:58 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c072185a-4144-4318-9c27-0a477c5a8147" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d34bb408-6545-4eaa-b051-18f5dbaa44fb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "00ec0240-c179-4452-b9b3-594d54530c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "00ec0240-c179-4452-b9b3-594d54530c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "896c8db6-4114-4cbb-8514-591e2b801de0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:00 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7e159877-d5a8-46cf-a981-de65942e7251" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "896c8db6-4114-4cbb-8514-591e2b801de0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:45:01.1518559Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "858a1fce-596a-4867-99a1-39a1e8eb1421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:45:01.1518559Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "858a1fce-596a-4867-99a1-39a1e8eb1421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json new file mode 100644 index 000000000000..62f5b7a85ba5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json @@ -0,0 +1,797 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "x-ms-correlation-request-id": [ + "04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165233Z:04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:33 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "x-ms-correlation-request-id": [ + "0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8a4e714a-8073-4f35-9399-424c7ec2f8ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "x-ms-correlation-request-id": [ + "92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165235Z:92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "ETag": [ + "0x8D2A7244011792D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a2042c08-35df-4f66-aba6-36debfe39889" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "x-ms-correlation-request-id": [ + "9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "ETag": [ + "0x8D2A72440D588D6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7f478b0f-aad0-4acb-b253-040262b870bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "x-ms-correlation-request-id": [ + "c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165235Z:c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "97bd5103-930b-49ae-841d-698344d3beb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "x-ms-correlation-request-id": [ + "edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcc234e7-c24a-4459-96ff-d38210894671" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "59fc3f57-2f8b-402c-afd9-650d9181d881" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcc234e7-c24a-4459-96ff-d38210894671" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d0fb0afb-6d0c-4b9a-8afd-37f32dcc8715" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d0fb0afb-6d0c-4b9a-8afd-37f32dcc8715" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dd8a8067-679e-4cab-8f63-8961770181f6" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "89f598b8-08ad-484d-88e0-e16241241109" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dd8a8067-679e-4cab-8f63-8961770181f6" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cdacfdd-28c9-430f-9fa3-673e83e9d475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cdacfdd-28c9-430f-9fa3-673e83e9d475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json new file mode 100644 index 000000000000..5638040c1552 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json @@ -0,0 +1,644 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "x-ms-correlation-request-id": [ + "bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170423Z:bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:23 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "x-ms-correlation-request-id": [ + "7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "d0ed0d57-a630-471e-8b9d-293e63465c8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "x-ms-correlation-request-id": [ + "30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170425Z:30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:24 GMT" + ], + "ETag": [ + "0x8D2A725E82D6641" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "34466208-43b6-4c32-aac1-bd6cd1662eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "x-ms-correlation-request-id": [ + "f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "ETag": [ + "0x8D2A725E9154C5D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "3fbafa55-de30-423f-9da7-0506c67e64e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "e6d89999-b299-408d-a288-734c32fee260" + ], + "x-ms-correlation-request-id": [ + "e6d89999-b299-408d-a288-734c32fee260" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170425Z:e6d89999-b299-408d-a288-734c32fee260" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "4986ebc0-887d-4a5c-9c1b-5fa390341843" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "x-ms-correlation-request-id": [ + "66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9aa45970-34fa-4b61-b3cb-e741e0af13e4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a8cb9777-b4ea-44f7-85bb-642b0a6e7a9a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9aa45970-34fa-4b61-b3cb-e741e0af13e4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20ce9460-a5ca-44d5-a8c7-811aa4f51f88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20ce9460-a5ca-44d5-a8c7-811aa4f51f88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "1f3550d5-bbed-42f6-a02c-a8b868baf45b" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2308327f-20a3-4eda-a7db-dc4bd3939dee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f3550d5-bbed-42f6-a02c-a8b868baf45b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:04:27.4042443Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ba82003-4349-4d18-9171-f732b53513f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:04:27.4042443Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ba82003-4349-4d18-9171-f732b53513f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json new file mode 100644 index 000000000000..b706b484f638 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json @@ -0,0 +1,797 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "x-ms-correlation-request-id": [ + "ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171753Z:ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "5a209db1-b874-415f-907b-97d10e721f57" + ], + "x-ms-correlation-request-id": [ + "5a209db1-b874-415f-907b-97d10e721f57" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171755Z:5a209db1-b874-415f-907b-97d10e721f57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "febc5737-4220-470b-8194-9f10d3f24c4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "x-ms-correlation-request-id": [ + "395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171754Z:395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:53 GMT" + ], + "ETag": [ + "0x8D2A727CA9D8E78" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "3a2b5e07-ef6e-415d-a98e-5b0c95333d94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "996d1a95-4524-4151-8311-d605ae1012ca" + ], + "x-ms-correlation-request-id": [ + "996d1a95-4524-4151-8311-d605ae1012ca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171756Z:996d1a95-4524-4151-8311-d605ae1012ca" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "ETag": [ + "0x8D2A727CB84C35A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "04aca641-2d4a-4630-8c21-56060ab94b64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "x-ms-correlation-request-id": [ + "94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171754Z:94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:54 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7d82bd23-612f-4944-95aa-368c62b98c72" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "x-ms-correlation-request-id": [ + "d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171756Z:d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f9ae4fea-8c5c-49b3-81f2-d94b39010488" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "475d8cfe-1277-40f1-85fc-f47cf95d66bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f9ae4fea-8c5c-49b3-81f2-d94b39010488" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "aaef215a-832e-4e00-a3ac-78680a72fa99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "aaef215a-832e-4e00-a3ac-78680a72fa99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "146bfd89-0899-4c25-9e4b-04bd23a3be32" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d3248ec0-5ca1-4fc4-9cb5-b2c83fefbe81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "146bfd89-0899-4c25-9e4b-04bd23a3be32" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1f7dc128-824b-43f8-98df-fb262b3bdd0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1f7dc128-824b-43f8-98df-fb262b3bdd0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json new file mode 100644 index 000000000000..3e3e0f58aadb --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json @@ -0,0 +1,2891 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "x-ms-correlation-request-id": [ + "61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223851Z:61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:50 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "2dcad169-7b44-416a-8def-93685d768f2c" + ], + "x-ms-correlation-request-id": [ + "2dcad169-7b44-416a-8def-93685d768f2c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223853Z:2dcad169-7b44-416a-8def-93685d768f2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "e184d191-0bec-461f-841b-2be29fb39456" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "x-ms-correlation-request-id": [ + "70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223852Z:70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:51 GMT" + ], + "ETag": [ + "0x8D2AA7949F630AE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2130cad3-ccee-4dd6-bcd1-6b9d144dbb06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "x-ms-correlation-request-id": [ + "9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223854Z:9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "ETag": [ + "0x8D2AA794AFADF6E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "64aacf2c-fa29-49ce-960a-98569e95162c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "38aaff54-8736-437b-909d-5af1539c40f8" + ], + "x-ms-correlation-request-id": [ + "38aaff54-8736-437b-909d-5af1539c40f8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223852Z:38aaff54-8736-437b-909d-5af1539c40f8" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:51 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "beec90cd-db74-4890-abd3-016e0a55a2aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "x-ms-correlation-request-id": [ + "1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223854Z:1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"schedule\": {},\r\n \"jobSpecification\": {\r\n \"commonEnvironmentSettings\": [],\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "186" + ], + "client-request-id": [ + "9b019097-9288-4637-9118-7775a3bff46d" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:52 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "972fa2db-0706-4be6-841c-8836c3072161" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9b019097-9288-4637-9118-7775a3bff46d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "ETag": [ + "0x8D2AA794A8362F2" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3920b7ac-3138-466b-b5ef-9780b96d5a6a" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794A8362F2\",\r\n \"lastModified\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "caf46a71-cae7-4721-b402-f0ddc86eb325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3920b7ac-3138-466b-b5ef-9780b96d5a6a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794A8362F2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "request-id": [ + "eb1ba061-57c4-477a-ad6d-58ff7f865095" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "request-id": [ + "eb1ba061-57c4-477a-ad6d-58ff7f865095" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "910b75c8-55d7-4888-b7a3-529bfb08edbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "910b75c8-55d7-4888-b7a3-529bfb08edbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json new file mode 100644 index 000000000000..b260602bf5b9 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json @@ -0,0 +1,2939 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "x-ms-correlation-request-id": [ + "98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224644Z:98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:44 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "x-ms-correlation-request-id": [ + "be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "dc0b5397-5919-4dc8-b95f-802c422b0ed5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "x-ms-correlation-request-id": [ + "6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224646Z:6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:45 GMT" + ], + "ETag": [ + "0x8D2AA7A6477BA57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "97e6d423-50c8-4e47-b645-2d9eb4c38768" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "x-ms-correlation-request-id": [ + "a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "ETag": [ + "0x8D2AA7A6534ABC8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "62cbc469-1e63-45ae-9f0f-20ca87ab06c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "x-ms-correlation-request-id": [ + "004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224646Z:004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "1ab2a584-bd96-4dfa-ade7-a033c59380e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "x-ms-correlation-request-id": [ + "28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testDisableEnableJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "103" + ], + "client-request-id": [ + "88a632bf-6cae-4f86-bc8a-fb85cba097d8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5ee5de7f-5fb1-4c03-9e55-767f3a5702ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88a632bf-6cae-4f86-bc8a-fb85cba097d8" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "ETag": [ + "0x8D2AA7A64E3B8C6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "28461697-e412-4636-b6d8-aebd5f61f10b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A64E3B8C6\",\r\n \"lastModified\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "08729fa5-a7fa-4879-8f6c-4cb6d58a03b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "28461697-e412-4636-b6d8-aebd5f61f10b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A64E3B8C6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1d582ab1-37a2-499a-9531-2c2b284b6c19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1d582ab1-37a2-499a-9531-2c2b284b6c19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273346bd-5f65-4ce5-93a4-e6d376b0a622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273346bd-5f65-4ce5-93a4-e6d376b0a622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json new file mode 100644 index 000000000000..2206b8026b06 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json @@ -0,0 +1,741 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "x-ms-correlation-request-id": [ + "9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225830Z:9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "x-ms-correlation-request-id": [ + "8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225832Z:8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8c795b27-c83a-463e-b215-c65c631b6d34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "x-ms-correlation-request-id": [ + "58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225831Z:58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ], + "ETag": [ + "0x8D2A432B5C69EB8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "ac120aaf-2100-4a96-813c-5b64f78f4d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "x-ms-correlation-request-id": [ + "967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225833Z:967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ], + "ETag": [ + "0x8D2A432B6C3670F" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7e8bf0b2-88fc-419d-b828-d4510ae92a44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "x-ms-correlation-request-id": [ + "4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225831Z:4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "5e833131-eb98-4910-b6cd-8ba474b91e51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "8970f01d-dad4-4558-b185-5035070f7840" + ], + "x-ms-correlation-request-id": [ + "8970f01d-dad4-4558-b185-5035070f7840" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225833Z:8970f01d-dad4-4558-b185-5035070f7840" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67b9548-fd46-4626-91fa-f59f4ac4d1ef" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A42F3C68C674\",\r\n \"lastModified\": \"2015-08-13T22:33:39.6578932Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:33:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a493f1a-c96f-47a9-9f15-c4eebcfd1bd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67b9548-fd46-4626-91fa-f59f4ac4d1ef" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "ETag": [ + "0x8D2A42F3C68C674" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d0e715aa-0840-45d8-8ca2-11a944e7f0e8" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A42F3C68C674\",\r\n \"lastModified\": \"2015-08-13T22:33:39.6578932Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:33:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b455a3d4-d393-46dc-9538-46526386752b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d0e715aa-0840-45d8-8ca2-11a944e7f0e8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A42F3C68C674" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5888a094-d1f0-4b84-a684-a87f4f1c4cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5888a094-d1f0-4b84-a684-a87f4f1c4cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json new file mode 100644 index 000000000000..42d1dcb34afe --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json @@ -0,0 +1,955 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "x-ms-correlation-request-id": [ + "c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230615Z:c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:15 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "x-ms-correlation-request-id": [ + "0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "f9573f14-f5f1-4cb5-bd70-e0b5d200fe94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "x-ms-correlation-request-id": [ + "5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230617Z:5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:16 GMT" + ], + "ETag": [ + "0x8D2A433CB2AF221" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "bd3215c6-df1b-43e4-8a47-5c936f3bf49c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "x-ms-correlation-request-id": [ + "d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "ETag": [ + "0x8D2A433CBD93B05" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b841cbe3-8c8d-41e1-b348-ac2442d12795" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "x-ms-correlation-request-id": [ + "9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230617Z:9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:16 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "715e4ce2-248f-4563-a934-b427b56d5ae9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "x-ms-correlation-request-id": [ + "746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e214b1b6-efd2-4b1c-a390-f0b2d75171a3" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:02:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8383b96e-4aa8-42f9-8d3f-c549267aae11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e214b1b6-efd2-4b1c-a390-f0b2d75171a3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A4333A2D8B79" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1bcde788-b497-4fa3-ba4e-bad734ded925" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:02:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "804e0c2a-f692-4074-9842-347b085f9369" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1bcde788-b497-4fa3-ba4e-bad734ded925" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A4333A2D8B79" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "997aa7f8-602a-49c3-affb-d61afb41574b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "997aa7f8-602a-49c3-affb-d61afb41574b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleById.json new file mode 100644 index 000000000000..35a645b89b8b --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleById.json @@ -0,0 +1,992 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "2a182bee-19bc-4750-bbae-0f9cb4272c29" + ], + "x-ms-correlation-request-id": [ + "2a182bee-19bc-4750-bbae-0f9cb4272c29" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001349Z:2a182bee-19bc-4750-bbae-0f9cb4272c29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:48 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "fb889617-5a58-4bed-ad2c-ef74dfe91321" + ], + "x-ms-correlation-request-id": [ + "fb889617-5a58-4bed-ad2c-ef74dfe91321" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001356Z:fb889617-5a58-4bed-ad2c-ef74dfe91321" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b3590fbd-4973-4f92-a308-5467e95451db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "1e16904e-eceb-4b18-a6be-c7e734d96088" + ], + "x-ms-correlation-request-id": [ + "1e16904e-eceb-4b18-a6be-c7e734d96088" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001350Z:1e16904e-eceb-4b18-a6be-c7e734d96088" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "ETag": [ + "0x8D29D2ABE74F9E4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "4a3a0e0e-eedc-4985-ad05-789a52b4ae09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "d77c5ea4-e8c6-4155-a716-7cb477056896" + ], + "x-ms-correlation-request-id": [ + "d77c5ea4-e8c6-4155-a716-7cb477056896" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001356Z:d77c5ea4-e8c6-4155-a716-7cb477056896" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2AC2295785" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "9ddb8ebe-68c8-4d12-ad4b-cc10c549fc57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "a675685c-572d-4817-b7ff-a0efc4428815" + ], + "x-ms-correlation-request-id": [ + "a675685c-572d-4817-b7ff-a0efc4428815" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001350Z:a675685c-572d-4817-b7ff-a0efc4428815" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "d6b0cd4c-131c-440e-89ce-ed2f4cdfe053" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "ce28b8c1-f67d-4085-836d-49e9fa1e5db3" + ], + "x-ms-correlation-request-id": [ + "ce28b8c1-f67d-4085-836d-49e9fa1e5db3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001356Z:ce28b8c1-f67d-4085-836d-49e9fa1e5db3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "282b3f6e-4772-4ccf-aed5-764aa57db3ad" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d003f4ee-69cf-4e5e-b27b-34e59e71a02e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "282b3f6e-4772-4ccf-aed5-764aa57db3ad" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96a62196-7305-4490-9c1e-ad6246c24075" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:51 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6df44251-1b9e-43f0-bd2a-981e90a83549" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96a62196-7305-4490-9c1e-ad6246c24075" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96a62196-7305-4490-9c1e-ad6246c24075" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:51 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6df44251-1b9e-43f0-bd2a-981e90a83549" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96a62196-7305-4490-9c1e-ad6246c24075" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:53.2974032Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0928fbb-9c47-4a37-9aca-134a1584c3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:53.2974032Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0928fbb-9c47-4a37-9aca-134a1584c3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:53.2974032Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0928fbb-9c47-4a37-9aca-134a1584c3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f19d5c6-55b7-47c4-85fd-037f28a29f06" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8669fe2-ee40-425f-af28-ccc10953c804" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ABD9EBEE0\",\r\n \"lastModified\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:53.2974032Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:50.8145888Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7265ec85-cc8b-4868-bc7b-807fed8e8018" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8669fe2-ee40-425f-af28-ccc10953c804" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2ABD9EBEE0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9edc2287-c321-4d59-afed-cb44c0312c9b" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "bea3212c-cf6c-456c-bb76-ff545144085b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9edc2287-c321-4d59-afed-cb44c0312c9b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2AC158CD75" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9edc2287-c321-4d59-afed-cb44c0312c9b" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "bea3212c-cf6c-456c-bb76-ff545144085b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9edc2287-c321-4d59-afed-cb44c0312c9b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "ETag": [ + "0x8D29D2AC158CD75" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AC158CD75\",\r\n \"lastModified\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fe12755-4b88-4c38-a316-8ee8318256a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AC158CD75\",\r\n \"lastModified\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fe12755-4b88-4c38-a316-8ee8318256a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AC158CD75\",\r\n \"lastModified\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:57.0670965Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fe12755-4b88-4c38-a316-8ee8318256a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "80098300-f801-4764-a9c8-1a67da0a7a44" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleByPipeline.json new file mode 100644 index 000000000000..b34b409e94d2 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDisableAutoScaleByPipeline.json @@ -0,0 +1,1206 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "5dd73b4b-a9ce-46db-8e80-6bbf2f14ddd8" + ], + "x-ms-correlation-request-id": [ + "5dd73b4b-a9ce-46db-8e80-6bbf2f14ddd8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001322Z:5dd73b4b-a9ce-46db-8e80-6bbf2f14ddd8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:22 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "a67fbda7-d170-4fe2-af0e-1e742788362a" + ], + "x-ms-correlation-request-id": [ + "a67fbda7-d170-4fe2-af0e-1e742788362a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001330Z:a67fbda7-d170-4fe2-af0e-1e742788362a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "08d188cd-2912-4617-9595-a55953eaea9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "0dae6549-02cf-4130-a06b-b3b1820a34d4" + ], + "x-ms-correlation-request-id": [ + "0dae6549-02cf-4130-a06b-b3b1820a34d4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001324Z:0dae6549-02cf-4130-a06b-b3b1820a34d4" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:23 GMT" + ], + "ETag": [ + "0x8D29D2AADC453AC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "f7ec1488-9a69-44ea-aedf-3cce8f6703e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "989b454c-a375-467b-b192-5082ec79deed" + ], + "x-ms-correlation-request-id": [ + "989b454c-a375-467b-b192-5082ec79deed" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001330Z:989b454c-a375-467b-b192-5082ec79deed" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ], + "ETag": [ + "0x8D29D2AB19230B7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a7e7a6f6-28e5-4c81-9b29-b0675f1a1afb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "70f218b8-1b7c-4e71-bb65-683ff8957168" + ], + "x-ms-correlation-request-id": [ + "70f218b8-1b7c-4e71-bb65-683ff8957168" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001324Z:70f218b8-1b7c-4e71-bb65-683ff8957168" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:23 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "fd49c40c-5720-46d6-b889-91452536bde8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "8ea8d78c-50a3-417c-8729-59e24f6adfb3" + ], + "x-ms-correlation-request-id": [ + "8ea8d78c-50a3-417c-8729-59e24f6adfb3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001330Z:8ea8d78c-50a3-417c-8729-59e24f6adfb3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "f2ae1e79-2bbd-49b8-b671-1e6561cbdae9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "de049b5d-39f0-4ed0-b42c-721fbdb71493" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f2ae1e79-2bbd-49b8-b671-1e6561cbdae9" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b08e422-a6d7-4497-aecf-126e07e1b55e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "95cac2b2-af9c-40d9-a6ba-aed1f65d645a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b08e422-a6d7-4497-aecf-126e07e1b55e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b08e422-a6d7-4497-aecf-126e07e1b55e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "95cac2b2-af9c-40d9-a6ba-aed1f65d645a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b08e422-a6d7-4497-aecf-126e07e1b55e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "38a946a0-7a35-4812-8317-d7b53cd6dc54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "38a946a0-7a35-4812-8317-d7b53cd6dc54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:29 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "38a946a0-7a35-4812-8317-d7b53cd6dc54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93c33d6f-e7af-4f77-8641-c3246035e12b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "da60c4c1-5cea-4a7e-9efb-7d065089b4a5" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b2b81a23-1aff-4146-8b81-fb5eb461620f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "da60c4c1-5cea-4a7e-9efb-7d065089b4a5" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8bae358c-f510-4b5a-9bc4-158b16b0b5e5" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "de464201-36c1-4ca3-a645-8b7d9c21bbbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8bae358c-f510-4b5a-9bc4-158b16b0b5e5" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8bae358c-f510-4b5a-9bc4-158b16b0b5e5" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AADF2CFF9\",\r\n \"lastModified\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:26.7400256Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:24.5219833Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "de464201-36c1-4ca3-a645-8b7d9c21bbbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8bae358c-f510-4b5a-9bc4-158b16b0b5e5" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AADF2CFF9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a22420c2-d19e-444c-af27-3a823af6107b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AB1BD982B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a22420c2-d19e-444c-af27-3a823af6107b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AB1BD982B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a22420c2-d19e-444c-af27-3a823af6107b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eb25e977-f24f-4382-94ee-ed94a882d69f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "ETag": [ + "0x8D29D2AB1BD982B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AB1BD982B\",\r\n \"lastModified\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ad2c81cb-2c02-418a-9db5-562d397d684a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AB1BD982B\",\r\n \"lastModified\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ad2c81cb-2c02-418a-9db5-562d397d684a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AB1BD982B\",\r\n \"lastModified\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ad2c81cb-2c02-418a-9db5-562d397d684a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AB1BD982B\",\r\n \"lastModified\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:30.8841003Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ad2c81cb-2c02-418a-9db5-562d397d684a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b67372b-34f8-4f8a-a615-0d513c65774f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleById.json new file mode 100644 index 000000000000..a2e02bb3bd08 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleById.json @@ -0,0 +1,998 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "2284d471-bfb1-4b06-9b0e-7a098d198ee3" + ], + "x-ms-correlation-request-id": [ + "2284d471-bfb1-4b06-9b0e-7a098d198ee3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001414Z:2284d471-bfb1-4b06-9b0e-7a098d198ee3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:14 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "bff8b22d-4306-43f6-93ac-1ae9857823b0" + ], + "x-ms-correlation-request-id": [ + "bff8b22d-4306-43f6-93ac-1ae9857823b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001416Z:bff8b22d-4306-43f6-93ac-1ae9857823b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "0e40dbcf-31bf-4b96-a715-fe92d53e26aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "969f2b2c-91c1-432c-ae82-0002c16e41bc" + ], + "x-ms-correlation-request-id": [ + "969f2b2c-91c1-432c-ae82-0002c16e41bc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001415Z:969f2b2c-91c1-432c-ae82-0002c16e41bc" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:14 GMT" + ], + "ETag": [ + "0x8D29D2ACD3E4846" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "eb4e5d89-f4a8-425e-bab9-8b7c3f0eb279" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "1e7c2d66-959a-48e5-93de-c4637d7725bb" + ], + "x-ms-correlation-request-id": [ + "1e7c2d66-959a-48e5-93de-c4637d7725bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001416Z:1e7c2d66-959a-48e5-93de-c4637d7725bb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "ETag": [ + "0x8D29D2ACDD53B1B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2707c0a5-7f04-4111-a014-a5660275d24d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "c49bb6fe-ea58-4c8f-8faf-0f21fdd41523" + ], + "x-ms-correlation-request-id": [ + "c49bb6fe-ea58-4c8f-8faf-0f21fdd41523" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001415Z:c49bb6fe-ea58-4c8f-8faf-0f21fdd41523" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:14 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "77d8b375-7cc1-46e8-b5c5-409db6ccb0a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "92ec97cb-6d1c-4826-954f-02b845d0704e" + ], + "x-ms-correlation-request-id": [ + "92ec97cb-6d1c-4826-954f-02b845d0704e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001417Z:92ec97cb-6d1c-4826-954f-02b845d0704e" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:16 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b9a3775-354e-4370-b789-f761f0da8b07" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "eb613c73-4e1b-45c1-b8b7-6d868812f7aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b9a3775-354e-4370-b789-f761f0da8b07" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "ETag": [ + "0x8D29D2ACC5CE27D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6d650187-59b0-4c37-8c2f-e1fcbd105447" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "ETag": [ + "0x8D29D2ACDD1D523" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6d650187-59b0-4c37-8c2f-e1fcbd105447" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "ETag": [ + "0x8D29D2ACDD1D523" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6d650187-59b0-4c37-8c2f-e1fcbd105447" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7cbe7b55-b29c-4914-8184-dcf23bb29384" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:18 GMT" + ], + "ETag": [ + "0x8D29D2ACDD1D523" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ed72cb63-d6f3-4396-8beb-4c59fbc5b1db" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACC5CE27D\",\r\n \"lastModified\": \"2015-08-05T00:14:15.5487869Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:58.2877169Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d5937854-e868-4cf6-9337-a0e5c52af671" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ed72cb63-d6f3-4396-8beb-4c59fbc5b1db" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "ETag": [ + "0x8D29D2ACC5CE27D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ed72cb63-d6f3-4396-8beb-4c59fbc5b1db" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACC5CE27D\",\r\n \"lastModified\": \"2015-08-05T00:14:15.5487869Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:58.2877169Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d5937854-e868-4cf6-9337-a0e5c52af671" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ed72cb63-d6f3-4396-8beb-4c59fbc5b1db" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "ETag": [ + "0x8D29D2ACC5CE27D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "27524467-e9b7-4657-b1d3-94fe9e6c4759" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACC5CE27D\",\r\n \"lastModified\": \"2015-08-05T00:14:15.5487869Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:58.2877169Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2f96f522-87a0-4bfa-bac2-b084fba8c009" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "27524467-e9b7-4657-b1d3-94fe9e6c4759" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "ETag": [ + "0x8D29D2ACC5CE27D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "2020e76e-1195-4de7-b028-5d91bf3304b2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3ce789ce-df4a-47ea-8724-9c2558a8af8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2020e76e-1195-4de7-b028-5d91bf3304b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "ETag": [ + "0x8D29D2ACDA4274C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "2020e76e-1195-4de7-b028-5d91bf3304b2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3ce789ce-df4a-47ea-8724-9c2558a8af8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2020e76e-1195-4de7-b028-5d91bf3304b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "ETag": [ + "0x8D29D2ACDA4274C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACDA4274C\",\r\n \"lastModified\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e160146e-55ca-46ae-82ab-3bd901372519" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACDA4274C\",\r\n \"lastModified\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e160146e-55ca-46ae-82ab-3bd901372519" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2ACDA4274C\",\r\n \"lastModified\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:14:17.6935756Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e160146e-55ca-46ae-82ab-3bd901372519" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "78ad6abb-dcd0-4582-82d1-3d25c7ef9741" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:14:17 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleByPipeline.json new file mode 100644 index 000000000000..80f8af1daaa5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEnableAutoScaleByPipeline.json @@ -0,0 +1,1218 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "d6bbfc50-cac0-4538-901f-ac90df4137b6" + ], + "x-ms-correlation-request-id": [ + "d6bbfc50-cac0-4538-901f-ac90df4137b6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001300Z:d6bbfc50-cac0-4538-901f-ac90df4137b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:12:59 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "e795c884-6c4f-4332-9144-8c3b7b7667de" + ], + "x-ms-correlation-request-id": [ + "e795c884-6c4f-4332-9144-8c3b7b7667de" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001303Z:e795c884-6c4f-4332-9144-8c3b7b7667de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "56bc7847-1ef9-4f6e-ba62-e6316839733f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "56451544-5d27-4a83-b831-abc0dcf0810c" + ], + "x-ms-correlation-request-id": [ + "56451544-5d27-4a83-b831-abc0dcf0810c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001301Z:56451544-5d27-4a83-b831-abc0dcf0810c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:01 GMT" + ], + "ETag": [ + "0x8D29D2AA144C87F" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "60021889-0ff5-42c9-a18d-1fd5b4c5cf64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "de1e4fb7-1af1-4958-9fce-dbd7fc2e3e99" + ], + "x-ms-correlation-request-id": [ + "de1e4fb7-1af1-4958-9fce-dbd7fc2e3e99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001303Z:de1e4fb7-1af1-4958-9fce-dbd7fc2e3e99" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "ETag": [ + "0x8D29D2AA2AC9C87" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7184322f-855c-419c-8bb0-0658c699a401" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "2d49ccb3-9de1-4810-8c6d-e66a571e228b" + ], + "x-ms-correlation-request-id": [ + "2d49ccb3-9de1-4810-8c6d-e66a571e228b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001301Z:2d49ccb3-9de1-4810-8c6d-e66a571e228b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "be43ee84-6c97-4a18-8a52-fcab45de9931" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "fa87fad6-f981-491b-b27b-218741e62f8f" + ], + "x-ms-correlation-request-id": [ + "fa87fad6-f981-491b-b27b-218741e62f8f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T001303Z:fa87fad6-f981-491b-b27b-218741e62f8f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac5341ab-5d9a-4627-b700-db6bb4fe34d5" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "eb926197-4d9b-4500-bef7-efa237b01b38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac5341ab-5d9a-4627-b700-db6bb4fe34d5" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "51ac71bb-9296-4655-80b7-b5f842fff6cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA22C790B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "51ac71bb-9296-4655-80b7-b5f842fff6cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA22C790B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "51ac71bb-9296-4655-80b7-b5f842fff6cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e21b9b63-3c53-46d0-b13e-21870262cad3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA22C790B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d5e259c-c5e5-46b1-a3b2-00bf8d5bc68e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA0FBBA81\",\r\n \"lastModified\": \"2015-08-05T00:13:02.7700353Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:12:31.1090408Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d3470831-4dfc-4d09-aee5-6f834d73d9d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d5e259c-c5e5-46b1-a3b2-00bf8d5bc68e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d5e259c-c5e5-46b1-a3b2-00bf8d5bc68e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA0FBBA81\",\r\n \"lastModified\": \"2015-08-05T00:13:02.7700353Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:12:31.1090408Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d3470831-4dfc-4d09-aee5-6f834d73d9d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d5e259c-c5e5-46b1-a3b2-00bf8d5bc68e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e80b3e8a-9f8d-4df3-aab6-c5cf0741609c" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA0FBBA81\",\r\n \"lastModified\": \"2015-08-05T00:13:02.7700353Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:12:31.1090408Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9e18749b-78fa-47ff-a432-20948204057c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e80b3e8a-9f8d-4df3-aab6-c5cf0741609c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cbd6de52-f14d-43be-be9c-66eaff6b0439" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA0FBBA81\",\r\n \"lastModified\": \"2015-08-05T00:13:02.7700353Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:12:31.1090408Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6dc8f5b6-bbf2-4955-8d11-1c385bce5558" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cbd6de52-f14d-43be-be9c-66eaff6b0439" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cbd6de52-f14d-43be-be9c-66eaff6b0439" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA0FBBA81\",\r\n \"lastModified\": \"2015-08-05T00:13:02.7700353Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:12:31.1090408Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT2M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6dc8f5b6-bbf2-4955-8d11-1c385bce5558" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cbd6de52-f14d-43be-be9c-66eaff6b0439" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:03 GMT" + ], + "ETag": [ + "0x8D29D2AA0FBBA81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e1d58bf6-ac99-452d-ae21-5c8d3d09cd7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA1FA04A5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e1d58bf6-ac99-452d-ae21-5c8d3d09cd7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA1FA04A5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e1d58bf6-ac99-452d-ae21-5c8d3d09cd7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "931b7e50-9419-4e99-8d65-36429d42a821" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "ETag": [ + "0x8D29D2AA1FA04A5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA1FA04A5\",\r\n \"lastModified\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4fa99935-d253-46fe-97ea-e64cb508678f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA1FA04A5\",\r\n \"lastModified\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4fa99935-d253-46fe-97ea-e64cb508678f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA1FA04A5\",\r\n \"lastModified\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4fa99935-d253-46fe-97ea-e64cb508678f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2AA1FA04A5\",\r\n \"lastModified\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:13:04.4365477Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4fa99935-d253-46fe-97ea-e64cb508678f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c289714-181f-4be0-b2b1-8535cea909de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:13:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleById.json new file mode 100644 index 000000000000..545754452dc0 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleById.json @@ -0,0 +1,3546 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "72b4cc5d-088e-490c-85fd-ee4a0fff2e0c" + ], + "x-ms-correlation-request-id": [ + "72b4cc5d-088e-490c-85fd-ee4a0fff2e0c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000057Z:72b4cc5d-088e-490c-85fd-ee4a0fff2e0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:57 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "3cb562fb-90a1-4470-a67d-db68a03ee7e5" + ], + "x-ms-correlation-request-id": [ + "3cb562fb-90a1-4470-a67d-db68a03ee7e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000136Z:3cb562fb-90a1-4470-a67d-db68a03ee7e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "31bff09e-7363-4054-af36-56dcf9accc14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "c8aac525-7858-46ff-b760-265d3bf892c6" + ], + "x-ms-correlation-request-id": [ + "c8aac525-7858-46ff-b760-265d3bf892c6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000058Z:c8aac525-7858-46ff-b760-265d3bf892c6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:58 GMT" + ], + "ETag": [ + "0x8D29D28F1B5ED96" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "07d2327b-6b6f-470a-9f7f-b051f5ce9419" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "f701a17e-33d8-4583-89f9-ffcfc80fd3d0" + ], + "x-ms-correlation-request-id": [ + "f701a17e-33d8-4583-89f9-ffcfc80fd3d0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000136Z:f701a17e-33d8-4583-89f9-ffcfc80fd3d0" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D2908222BB2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8ab80273-4877-4b15-9c42-42f574e33e86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "463a762f-c8fe-4a84-8a19-fbf35f139d0d" + ], + "x-ms-correlation-request-id": [ + "463a762f-c8fe-4a84-8a19-fbf35f139d0d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000059Z:463a762f-c8fe-4a84-8a19-fbf35f139d0d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "eb16783c-42a8-4c4d-aed8-613d8ebca311" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "e0b06b9a-633b-4823-a8da-8459219e5eb1" + ], + "x-ms-correlation-request-id": [ + "e0b06b9a-633b-4823-a8da-8459219e5eb1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000137Z:e0b06b9a-633b-4823-a8da-8459219e5eb1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:36 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "58ad0e22-b24c-4083-87b9-0e5eaf817d6e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0d25c00-7794-4289-9870-33b9e13fe16e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58ad0e22-b24c-4083-87b9-0e5eaf817d6e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c703b10f-b872-44dd-b72e-a9085274e739" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0502934-702c-44ce-8ba9-7fa972a6fb34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c703b10f-b872-44dd-b72e-a9085274e739" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c703b10f-b872-44dd-b72e-a9085274e739" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c0502934-702c-44ce-8ba9-7fa972a6fb34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c703b10f-b872-44dd-b72e-a9085274e739" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5d7b90c0-5de5-46e2-a5ff-1bb758e58d5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5d7b90c0-5de5-46e2-a5ff-1bb758e58d5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5d7b90c0-5de5-46e2-a5ff-1bb758e58d5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "810b7055-5356-4f8e-b9d2-625b52c2f30e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:05 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6bb94c0e-3a1f-4dad-bf2b-9b95d8785466" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6bb94c0e-3a1f-4dad-bf2b-9b95d8785466" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6bb94c0e-3a1f-4dad-bf2b-9b95d8785466" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6bb94c0e-3a1f-4dad-bf2b-9b95d8785466" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4d51e957-6bfc-4d72-9a36-dc31dfa014a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:10 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0f115d89-154c-4a34-8817-c1fcef578d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0f115d89-154c-4a34-8817-c1fcef578d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0f115d89-154c-4a34-8817-c1fcef578d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0f115d89-154c-4a34-8817-c1fcef578d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0f115d89-154c-4a34-8817-c1fcef578d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "47f94625-4a69-4c15-8ba5-f3dfa4cfe5a9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:15 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b3daf0cd-e95a-40de-9088-baf45bca2fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c880532c-2385-45e4-808b-28d7e2c2fe9e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:20 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "11a98e4e-6050-40da-9138-dd5be76a04b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ec0b5e9-39d4-4ab5-a4b3-327355d06f9a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:25 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:00:59.653851Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e6bd10c-d8f8-4a1b-84e3-fb336a523f4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b41ae7e-eefd-411d-9f1b-e02a6ce0568f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:29 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18e6bb6-4eb1-42d0-948a-1b8ac4046481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0dccb6ab-3023-46d2-9a1e-268347d4f2f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:35 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aff0b984-6f1c-45fe-a96f-9e82c5f73a32" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D28F1F8F48E\",\r\n \"lastModified\": \"2015-08-05T00:00:59.653851Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:01:33.8848521Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:00:59.653851Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:00:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0c38a7b-6e88-40ff-ab6b-41d83e31938f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aff0b984-6f1c-45fe-a96f-9e82c5f73a32" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "ETag": [ + "0x8D29D28F1F8F48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?evaluateautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2V2YWx1YXRlYXV0b3NjYWxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "c2044383-3d3e-460f-a358-da5935f1d2df" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\r\n \"timestamp\": \"2015-08-05T00:01:38.0921198Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "53c71b24-0fc8-4b63-a1ef-d83ae3507652" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c2044383-3d3e-460f-a358-da5935f1d2df" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?evaluateautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2V2YWx1YXRlYXV0b3NjYWxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "c2044383-3d3e-460f-a358-da5935f1d2df" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\r\n \"timestamp\": \"2015-08-05T00:01:38.0921198Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "53c71b24-0fc8-4b63-a1ef-d83ae3507652" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c2044383-3d3e-460f-a358-da5935f1d2df" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "441de403-d5cf-4cfe-9e0e-02f1c713aba8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8bdec85-2c3f-407a-8a37-5a957bf4ee45" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:01:38 GMT" + ], + "ETag": [ + "0x8D29D2908DEB6FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleByPipeline.json new file mode 100644 index 000000000000..85be1a234238 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestEvaluateAutoScaleByPipeline.json @@ -0,0 +1,1239 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "0b12d30d-13ec-4172-8e2e-08f9b9388480" + ], + "x-ms-correlation-request-id": [ + "0b12d30d-13ec-4172-8e2e-08f9b9388480" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000339Z:0b12d30d-13ec-4172-8e2e-08f9b9388480" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:38 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "91b3f239-c24a-4110-9642-4dd84fbd04d0" + ], + "x-ms-correlation-request-id": [ + "91b3f239-c24a-4110-9642-4dd84fbd04d0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000346Z:91b3f239-c24a-4110-9642-4dd84fbd04d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:45 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "5d8aeeba-c81f-4e53-9d33-fef881dd8956" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "7bb27dc6-e698-4f55-8a21-eb655dfd44e2" + ], + "x-ms-correlation-request-id": [ + "7bb27dc6-e698-4f55-8a21-eb655dfd44e2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000340Z:7bb27dc6-e698-4f55-8a21-eb655dfd44e2" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:39 GMT" + ], + "ETag": [ + "0x8D29D2952AB7335" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "821e9b3f-fb67-4922-a58c-241ffacd24ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "28abe33d-3bdc-4533-b810-1631bbaf8099" + ], + "x-ms-correlation-request-id": [ + "28abe33d-3bdc-4533-b810-1631bbaf8099" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000346Z:28abe33d-3bdc-4533-b810-1631bbaf8099" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:45 GMT" + ], + "ETag": [ + "0x8D29D2956647968" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "fd0276c6-9b59-4876-bab7-1148c3a157ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "07d5ea6c-5d2e-4bcc-b888-b505ea2bcde6" + ], + "x-ms-correlation-request-id": [ + "07d5ea6c-5d2e-4bcc-b888-b505ea2bcde6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000340Z:07d5ea6c-5d2e-4bcc-b888-b505ea2bcde6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "0411a747-c322-4cdb-9541-02634325c3e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "cfd4cd67-9682-43d1-adcf-468d7a2c1502" + ], + "x-ms-correlation-request-id": [ + "cfd4cd67-9682-43d1-adcf-468d7a2c1502" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150805T000346Z:cfd4cd67-9682-43d1-adcf-468d7a2c1502" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?enableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2VuYWJsZWF1dG9zY2FsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "b7b8a5ca-c507-47f2-b459-0a969be67954" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "80a52a6e-5e37-42f5-94dd-05c49e487bed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b7b8a5ca-c507-47f2-b459-0a969be67954" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:41 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d10be310-3dd6-42da-9a4c-7f69734c7f79" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "23f790cc-5be3-418b-9408-42713733a91a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d10be310-3dd6-42da-9a4c-7f69734c7f79" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:41 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d10be310-3dd6-42da-9a4c-7f69734c7f79" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "23f790cc-5be3-418b-9408-42713733a91a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d10be310-3dd6-42da-9a4c-7f69734c7f79" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:41 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e3c4fb82-7d2e-422b-bf4d-e0b039930349" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e3c4fb82-7d2e-422b-bf4d-e0b039930349" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e3c4fb82-7d2e-422b-bf4d-e0b039930349" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "767f80cf-fc2e-411e-8a07-b2bc79958d27" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "793bdd00-232e-4d93-b2a0-cfaad131b999" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5406dbbc-6641-4a5f-86fa-d0632d6fa66b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "793bdd00-232e-4d93-b2a0-cfaad131b999" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6913ddb7-d076-459e-a028-4cf8e4c8609d" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f7646ae9-83b0-48ee-a43f-52eff1e7cf26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6913ddb7-d076-459e-a028-4cf8e4c8609d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6913ddb7-d076-459e-a028-4cf8e4c8609d" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29D2951DE0CE2\",\r\n \"lastModified\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"creationTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-04T23:51:53.6691508Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-05T00:03:43.0836299Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-08-05T00:03:40.5388002Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f7646ae9-83b0-48ee-a43f-52eff1e7cf26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6913ddb7-d076-459e-a028-4cf8e4c8609d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "ETag": [ + "0x8D29D2951DE0CE2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?evaluateautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2V2YWx1YXRlYXV0b3NjYWxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\r\n \"timestamp\": \"2015-08-05T00:03:47.2419357Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7f6b5237-c666-421c-b37f-e3b52c83b688" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?evaluateautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2V2YWx1YXRlYXV0b3NjYWxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\r\n \"timestamp\": \"2015-08-05T00:03:47.2419357Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7f6b5237-c666-421c-b37f-e3b52c83b688" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?evaluateautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2V2YWx1YXRlYXV0b3NjYWxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"autoScaleFormula\": \"$TargetDedicated=2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "48" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\r\n \"timestamp\": \"2015-08-05T00:03:47.2419357Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7f6b5237-c666-421c-b37f-e3b52c83b688" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "50f527e4-8043-4152-94e2-42d33a3e9cf0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5b983335-7852-4c64-b532-0721b7532475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "ETag": [ + "0x8D29D2955CCE249" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5b983335-7852-4c64-b532-0721b7532475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "ETag": [ + "0x8D29D2955CCE249" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5b983335-7852-4c64-b532-0721b7532475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "ETag": [ + "0x8D29D2955CCE249" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?disableautoscale&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2Rpc2FibGVhdXRvc2NhbGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "ocp-date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5b983335-7852-4c64-b532-0721b7532475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5512b9da-9440-4e50-b62b-60bce73a736c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Wed, 05 Aug 2015 00:03:47 GMT" + ], + "ETag": [ + "0x8D29D2955CCE249" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/about.txt b/src/ResourceManager/AzureBatch/Commands.Batch.Test/about.txt similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch.Test/about.txt rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/about.txt diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/packages.config b/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config similarity index 98% rename from src/ResourceManager/Batch/Commands.Batch.Test/packages.config rename to src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config index 97d6e7c7ea10..201b91e8be67 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/packages.config +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/GetBatchAccountCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/GetBatchAccountCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/GetBatchAccountKeysCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountKeysCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/GetBatchAccountKeysCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/GetBatchAccountKeysCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/Helpers.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/Helpers.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/Helpers.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/Helpers.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/NewBatchAccountCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/NewBatchAccountCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/NewBatchAccountKeyCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountKeyCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/NewBatchAccountKeyCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/NewBatchAccountKeyCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/RemoveBatchAccountCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/RemoveBatchAccountCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/RemoveBatchAccountCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/RemoveBatchAccountCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Accounts/SetBatchAccountCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Accounts/SetBatchAccountCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Accounts/SetBatchAccountCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Accounts/SetBatchAccountCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs b/src/ResourceManager/AzureBatch/Commands.Batch/BatchCmdletBase.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/BatchCmdletBase.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/BatchManagementClient.Customization.cs b/src/ResourceManager/AzureBatch/Commands.Batch/BatchManagementClient.Customization.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/BatchManagementClient.Customization.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/BatchManagementClient.Customization.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/BatchObjectModelCmdletBase.cs b/src/ResourceManager/AzureBatch/Commands.Batch/BatchObjectModelCmdletBase.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/BatchObjectModelCmdletBase.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/BatchObjectModelCmdletBase.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj similarity index 94% rename from src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj rename to src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj index 6c5261ffb99a..85a73eef86da 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj @@ -19,7 +19,7 @@ true full false - ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\Batch\ + ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureBatch\ TRACE;DEBUG;CODE_ANALYSIS prompt 4 @@ -30,7 +30,7 @@ pdbonly true - ..\..\..\Package\Release\ResourceManager\AzureResourceManager\Batch\ + ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureBatch\ TRACE;SIGN prompt 4 @@ -58,9 +58,8 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - - False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll @@ -155,11 +154,18 @@ + + + + + + + @@ -175,6 +181,7 @@ + @@ -189,6 +196,8 @@ + + @@ -240,14 +249,20 @@ + + + + + + True diff --git a/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.cs new file mode 100644 index 000000000000..64e008d7c884 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.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 Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Reset, Constants.AzureBatchComputeNode, DefaultParameterSetName = Constants.IdParameterSet)] + public class ResetBatchComputeNodeCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the pool that contains the compute node.")] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the compute node to reimage.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public ComputeNodeReimageOption? ReimageOption { get; set; } + + public override void ExecuteCmdlet() + { + ReimageComputeNodeParameters parameters = new ReimageComputeNodeParameters(this.BatchContext, this.PoolId, + this.Id, this.ComputeNode, this.AdditionalBehaviors) + { + ReimageOption = this.ReimageOption + }; + BatchClient.ReimageComputeNode(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.cs new file mode 100644 index 000000000000..0688865951b6 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.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 Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Restart, Constants.AzureBatchComputeNode, DefaultParameterSetName = Constants.IdParameterSet)] + public class RestartBatchComputeNodeCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the pool that contains the compute node.")] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the compute node to reboot.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter(Position = 2)] + [ValidateNotNullOrEmpty] + public ComputeNodeRebootOption? RebootOption { get; set; } + + public override void ExecuteCmdlet() + { + RebootComputeNodeParameters parameters = new RebootComputeNodeParameters(this.BatchContext, this.PoolId, + this.Id, this.ComputeNode, this.AdditionalBehaviors) + { + RebootOption = this.RebootOption + }; + BatchClient.RebootComputeNode(parameters); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchNodeFileCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchNodeFileCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs new file mode 100644 index 000000000000..b4b44d2b0fb5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Disable, Constants.AzureBatchJobSchedule)] + public class DisableBatchJobScheduleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job schedule to disable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.DisableJobSchedule(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs new file mode 100644 index 000000000000..e2b4298bd8ea --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Enable, Constants.AzureBatchJobSchedule)] + public class EnableBatchJobScheduleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job schedule to enable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.EnableJobSchedule(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.cs new file mode 100644 index 000000000000..f7b4b55e0dac --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.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 Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Disable, Constants.AzureBatchJob)] + public class DisableBatchJobCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job to disable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "Specifies what to do with active tasks associated with the job.")] + public DisableJobOption DisableJobOption { get; set; } + + public override void ExecuteCmdlet() + { + DisableJobParameters parameters = new DisableJobParameters(this.BatchContext, this.Id, null, this.DisableJobOption, this.AdditionalBehaviors); + BatchClient.DisableJob(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs new file mode 100644 index 000000000000..7f5ffe1ee6c7 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Enable, Constants.AzureBatchJob)] + public class EnableBatchJobCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job to enable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.EnableJob(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/GetBatchJobCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Jobs/GetBatchJobCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/NewBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/NewBatchJobCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Jobs/NewBatchJobCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Jobs/NewBatchJobCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/MSSharedLibKey.snk b/src/ResourceManager/AzureBatch/Commands.Batch/MSSharedLibKey.snk similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/MSSharedLibKey.snk rename to src/ResourceManager/AzureBatch/Commands.Batch/MSSharedLibKey.snk diff --git a/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml b/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml similarity index 57% rename from src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml rename to src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml index 358ebf7a939b..d3b6ab87f9e2 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml @@ -5,7 +5,7 @@ Get-AzureBatchAccountKeys - Gets the specified key of the specified Azure Batch accounts under the current subscription. + Gets the specified key of the specified Batch accounts under the current subscription. @@ -30,7 +30,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -59,7 +59,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -137,7 +137,7 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -146,7 +146,7 @@ Get-AzureBatchAccount - Gets an Azure Batch account under the current subscription. + Gets a Batch account under the current subscription. @@ -185,7 +185,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -207,7 +207,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -278,19 +278,18 @@ - Example 1: Get a Batch account by name + Example 1: Get a batch account by name - - PS C:\>Get-AzureBatchAccount -AccountName "cmdletexample" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>Get-AzureBatchAccount -AccountName "pfuller" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +pfuller westus CmdletExampleRG https://pfuller.westus.batch.azure.com + - This command gets the Batch account named cmdletexample. + This command gets the batch account named pfuller. @@ -301,20 +300,19 @@ - Example 2: Gets the Batch accounts associated with a resource group + Example 2: Gets the batch accounts associated with a resource group - - PS C:\>Get-AzureBatchAccount -ResourceGroupName "CmdletExampleRG" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - cmdletexample2 westus CmdletExampleRG https://cmdletexample2.westus.batch.azure.com - + PS C:\>Get-AzureBatchAccount -ResourceGroupName "CmdletExampleRG" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com +cmdletexample2 westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com + - This command gets the Batch accounts associated with the CmdletExampleRG resource group. + This command gets the batch accounts associated with the CmdletExampleRG resource group. @@ -339,124 +337,131 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchJob + Get-AzureBatchComputeNode - Gets Azure Batch jobs under the specified Batch account or job schedule. + Gets Batch compute nodes from a pool. Get - AzureBatchJob + AzureBatchComputeNode - The Get-AzureBatchJob cmdlet gets the Azure Batch jobs under the Batch account specified by the BatchAccountContext parameter. You can use the Id parameter to get a single job, or you can use the Filter parameter to get the jobs that match an OData filter. If you supply a job schedule id or PSCloudJobSchedule instance, only the jobs under that job schedule will be returned. + The Get-AzureBatchComputeNode cmdlet gets Azure Batch compute nodes under a pool. Specify either the pool ID or pool object. Specify the Id parameter to get a single compute node. Specify the Filter parameter to get the compute nodes that match an OData filter. - Get-AzureBatchJob + Get-AzureBatchComputeNode Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String MaxCount - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - JobScheduleId + + PoolId - Specifies the id of the job schedule which contains the jobs. + Specifies the ID of the pool that contains the compute nodes. - String + String - Get-AzureBatchJob + Get-AzureBatchComputeNode + PoolId + + Specifies the ID of the pool that contains the compute nodes. + + String + + Id - Specifies the id of the job. Wildcards are not permitted. + Specifies the ID of the compute node that this cmdlet gets from the pool. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchJob + Get-AzureBatchComputeNode - JobSchedule + Pool - Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. + Specifies the pool, as a PSCloudPool object, that contains the compute nodes. To obtain a PSCloudPool object, use the Get-AzureBatchPool cmdlet. - PSCloudJobSchedule + PSCloudPool Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if not job schedule is specified, then all jobs under the Batch account will be returned. If not filter is specified, and if a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String MaxCount - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -466,7 +471,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -478,7 +483,7 @@ Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if not job schedule is specified, then all jobs under the Batch account will be returned. If not filter is specified, and if a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String @@ -487,62 +492,62 @@ none - - MaxCount + + Id - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node that this cmdlet gets from the pool. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + MaxCount - Specifies the id of the job. Wildcards are not permitted. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - String + Int32 - String + Int32 none - - Profile + + Pool - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the pool, as a PSCloudPool object, that contains the compute nodes. To obtain a PSCloudPool object, use the Get-AzureBatchPool cmdlet. - AzureProfile + PSCloudPool - AzureProfile + PSCloudPool none - - JobSchedule + + PoolId - Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. + Specifies the ID of the pool that contains the compute nodes. - PSCloudJobSchedule + String - PSCloudJobSchedule + String none - - JobScheduleId + + Profile - Specifies the id of the job schedule which contains the jobs. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -568,7 +573,7 @@ - PSCloudJob + PSComputeNode @@ -585,37 +590,30 @@ - Example 1: Get a Batch job by id + Example 1: Get a compute node by ID - - PS C:\>Get-AzureBatchJob -Id "Job01" -BatchContext $Context - - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:12:07 PM - DisplayName : - ETag : 0x8D29535B2941439 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : Job01 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:12:07 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:12:07 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01 - + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : + - This command gets the job with id Job01. + This command gets the compute node that has the ID tvm-2316545714_1-20150725t213220z from the pool that has the ID Pool06. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -626,37 +624,46 @@ - Example 2: Get all active jobs under a specified job schedule + Example 2: Get all idle compute nodes from a pool - - PS C:\>Get-AzureBatchJob -JobScheduleId "MyJobSchedule" -Filter "state eq 'active'" -BatchContext $Context + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Filter "state eq 'idle'" -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:15:44 PM - DisplayName : - ETag : 0x8D2953633DD13E1 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : MyJobSchedule:job-1 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:15:44 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:15:44 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - +Id : tvm-2316545714_2-20150726t172920z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z +State : Idle +StateTransitionTime : 7/26/2015 5:33:58 PM +LastBootTime : 7/26/2015 5:33:58 PM +AllocationTime : 7/26/2015 5:29:20 PM +IPAddress : 10.14.121.38 +AffinityId : TVM:tvm-2316545714_2-20150726t172920z +VirtualMachineSize : small +TotalTasksRun : 0 +StartTaskInformation : +RecentTasks : +StartTask : +CertificateReferences : +Errors : + - This command gets the active jobs under the job schedule with id MyJobSchedule. + This command gets all idle compute nodes that are contained in the pool that has the ID Pool06. The command specifies the idle state by using the Filter parameter. @@ -667,36 +674,46 @@ - Example 3: Gets all jobs under a job schedule using pipelining + Example 3: Get all compute nodes in a specified pool - - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context | Get-AzureBatchJob -BatchContext $Context - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:15:44 PM - DisplayName : - ETag : 0x8D2953633DD13E1 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : MyJobSchedule:job-1 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:15:44 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:15:44 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - + PS C:\>Get-AzureBatchPool -Id "Pool07" -BatchContext $Context | Get-AzureBatchComputeNode -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : + +Id : tvm-2316545714_2-20150726t172920z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z +State : Idle +StateTransitionTime : 7/26/2015 5:33:58 PM +LastBootTime : 7/26/2015 5:33:58 PM +AllocationTime : 7/26/2015 5:29:20 PM +IPAddress : 10.14.121.38 +AffinityId : TVM:tvm-2316545714_2-20150726t172920z +VirtualMachineSize : small +TotalTasksRun : 0 +StartTaskInformation : +RecentTasks : +StartTask : +CertificateReferences : +Errors : + - This command gets all jobs under the job schedule with id MyJobSchedule. + This command gets the pool that has the ID Pool07 by using the Get-AzureBatchPool cmdlet. The command passes that pool to the current cmdlet by using the pipeline operator. That cmdlet gets all compute nodes from that pool. @@ -709,83 +726,91 @@ - Remove-AzureBatchJob + Get-AzureBatchNodeFile - Get-AzureBatchJobSchedule + Get-AzureBatchNodeFileContent + + + + Get-AzureBatchPool + + + + RMAzure_Batch_Cmdlets - Get-AzureBatchPool + Get-AzureBatchJobSchedule - Gets Azure Batch pools under the specified Batch account. + Gets Batch job schedules. Get - AzureBatchPool + AzureBatchJobSchedule - The Get-AzureBatchPool cmdlet gets the Azure Batch pools under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single pool, or you can use the Filter parameter to get the pools that match an OData filter. + The Get-AzureBatchJobSchedule cmdlet gets Azure Batch job schedules for the Batch account specified by the BatchContext parameter. Specify an ID to get a single job schedule. Specify the Filter parameter to get the job schedules that match an OData filter. - Get-AzureBatchPool + Get-AzureBatchJobSchedule Filter - Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. + Specifies an OData filter clause. This cmdlet returns job schedules that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all job schedules for the Batch context. String MaxCount - Specifies the maximum number of pools to return. If you specify a value of 0 or less, no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of job schedules to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchPool + Get-AzureBatchJobSchedule Id - Specifies the id of the pool to retrieve. Wildcards are not permitted. + Specifies the ID of the job schedule that this cmdlet gets. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -795,7 +820,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -807,7 +832,7 @@ Filter - Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. + Specifies an OData filter clause. This cmdlet returns job schedules that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all job schedules for the Batch context. String @@ -816,26 +841,26 @@ none - - MaxCount + + Id - Specifies the maximum number of pools to return. If you specify a value of 0 or less, no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the ID of the job schedule that this cmdlet gets. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + MaxCount - Specifies the id of the pool to retrieve. Wildcards are not permitted. + Specifies the maximum number of job schedules to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - String + Int32 - String + Int32 none @@ -843,7 +868,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -873,7 +898,7 @@ - PSCloudPool + PSCloudJobSchedule @@ -890,45 +915,30 @@ - Example 1: Get a pool by id + Example 1: Get a job schedule by specifying an ID - - PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context - - AllocationState : Resizing - AllocationStateTransitionTime : 7/25/2015 9:30:28 PM - AutoScaleEnabled : False - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - CreationTime : 7/25/2015 9:30:28 PM - CurrentDedicated : 0 - CurrentOSVersion : * - DisplayName : - ETag : 0x8D29538429CF04C - Id : MyPool - InterComputeNodeCommunicationEnabled : False - LastModified : 7/25/2015 9:30:28 PM - MaxTasksPerComputeNode : 1 - Metadata : - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 7/25/2015 9:30:28 PM - Statistics : - TargetDedicated : 1 - TargetOSVersion : * - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool - VirtualMachineSize : small - + PS C:\>Get-AzureBatchJobSchedule -Id "JobSchedule23" -BatchContext $Context +CreationTime : 7/25/2015 9:15:43 PM +DisplayName : +ETag : 0x8D2953633427FCA +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/25/2015 9:15:43 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/25/2015 9:15:43 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule23 + - This command gets the pool with id MyPool. + This command gets the job schedule that has the ID JobSchedule23. @@ -939,44 +949,46 @@ - Example 2: Get all pools using an OData filter + Example 2: Get job schedules by using a filter - - PS C:\>Get-AzureBatchPool -Filter "startswith(id,'My')" -BatchContext $Context - AllocationState : Resizing - AllocationStateTransitionTime : 7/25/2015 9:30:28 PM - AutoScaleEnabled : False - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - CreationTime : 7/25/2015 9:30:28 PM - CurrentDedicated : 0 - CurrentOSVersion : * - DisplayName : - ETag : 0x8D29538429CF04C - Id : MyPool - InterComputeNodeCommunicationEnabled : False - LastModified : 7/25/2015 9:30:28 PM - MaxTasksPerComputeNode : 1 - Metadata : - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 7/25/2015 9:30:28 PM - Statistics : - TargetDedicated : 1 - TargetOSVersion : * - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool - VirtualMachineSize : small - + PS C:\>Get-AzureBatchJobSchedule -Filter "startswith(id,'Job')" -BatchContext $Context +CreationTime : 7/25/2015 9:15:43 PM +DisplayName : +ETag : 0x8D2953633427FCA +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/25/2015 9:15:43 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/25/2015 9:15:43 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule23 + +CreationTime : 7/26/2015 5:39:33 PM +DisplayName : +ETag : 0x8D295E12B1084B4 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule2 +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/26/2015 5:39:33 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/26/2015 5:39:33 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule17 + - This command gets the pools whose ids start with My by using the Filter parameter. + This command gets all job schedules that have IDs that start with Job by specifying the Filter parameter. @@ -989,180 +1001,142 @@ - New-AzureBatchPool + New-AzureBatchJobSchedule - Remove-AzureBatchPool + Remove-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Get-AzureBatchRemoteDesktopProtocolFile + Get-AzureBatchJob - Gets a Remote Desktop Protocol file from the specified compute node. + Gets Batch jobs under the specified Batch account or job schedule. Get - AzureBatchRemoteDesktopProtocolFile + AzureBatchJob - The Get-AzureBatchRemoteDesktopProtocolFile cmdlet gets a Remote Desktop Protocol file from the specified compute node and saves it to the specified file location or to the user supplied stream. + The Get-AzureBatchJob cmdlet gets the Azure Batch jobs under the Batch account specified by the BatchAccountContext parameter. You can use the Id parameter to get a single job, or you can use the Filter parameter to get the jobs that match an OData filter. If you supply a job schedule ID or PSCloudJobSchedule instance, only the jobs under that job schedule will be returned. - Get-AzureBatchRemoteDesktopProtocolFile - - PoolId + Get-AzureBatchJob + + Filter - Specifies the id of the pool containing the compute node. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String - - ComputeNodeId + + JobScheduleId - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the ID of the job schedule which contains the jobs. String + + MaxCount + + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationPath - - Specifies the file path where the Remote Desktop Protocol file is saved. - - String - - Get-AzureBatchRemoteDesktopProtocolFile - - PoolId - - Specifies the id of the pool containing the compute node. - - String - - - ComputeNodeId + Get-AzureBatchJob + + Id - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the ID of the job. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationStream - - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. - - Stream - - Get-AzureBatchRemoteDesktopProtocolFile + Get-AzureBatchJob - ComputeNode + JobSchedule - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - PSComputeNode + PSCloudJobSchedule - Profile - - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - DestinationPath + Filter - Specifies the file path where the Remote Desktop Protocol file is saved. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String - - - Get-AzureBatchRemoteDesktopProtocolFile - - ComputeNode + + MaxCount - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - PSComputeNode + Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationStream - - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. - - Stream - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -1171,74 +1145,74 @@ none - - DestinationPath + + Filter - Specifies the file path where the Remote Desktop Protocol file is saved. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String String none - - DestinationStream + + Id - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. + Specifies the ID of the job. You cannot specify wildcard characters. - Stream + String - Stream + String none - - PoolId + + JobSchedule - Specifies the id of the pool containing the compute node. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - String + PSCloudJobSchedule - String + PSCloudJobSchedule none - - Profile + + JobScheduleId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the job schedule which contains the jobs. - AzureProfile + String - AzureProfile + String none - - ComputeNode + + MaxCount - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - PSComputeNode + Int32 - PSComputeNode + Int32 none - - ComputeNodeId + + Profile - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -1264,8 +1238,7 @@ - - + PSCloudJob @@ -1282,16 +1255,35 @@ - Example 1: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path + Example 1: Get a Batch job by id - - PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "MyPool" -ComputeNodeId "MyComputeNode" -DestinationPath "C:\PowerShell\MyComputeNode.rdp" -BatchContext $Context - + PS C:\>Get-AzureBatchJob -Id "Job01" -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:12:07 PM +DisplayName : +ETag : 0x8D29535B2941439 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : Job01 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:12:07 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:12:07 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode in the pool with id MyPool. The file is saved to a file named C:\PowerShell\MyComputeNode.rdp. + This command gets the job with ID Job01. @@ -1302,16 +1294,35 @@ - Example 2: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path + Example 2: Get all active jobs under a specified job schedule - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Id "MyComputeNode02" -BatchContext $Context | Get-AzureBatchRemoteDesktopProtocolFile -DestinationPath "C:\PowerShell\MyComputeNode02.rdp" -BatchContext $Context - + PS C:\>Get-AzureBatchJob -JobScheduleId "MyJobSchedule" -Filter "state eq 'active'" -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:15:44 PM +DisplayName : +ETag : 0x8D2953633DD13E1 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : MyJobSchedule:job-1 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:15:44 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:15:44 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode02 in the pool with id MyPool. The file is saved to a file named C:\PowerShell\MyComputeNode02.rdp. + This command gets the active jobs under the job schedule with ID MyJobSchedule. @@ -1322,16 +1333,35 @@ - Example 3: Get a Remote Desktop Protocol file from a specified compute node and save it to the supplied stream + Example 3: Gets all jobs under a job schedule using pipelining - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchRemoteDesktopProtocolFile "MyPool" -ComputeNodeId "MyComputeNode03" -DestinationStream $Stream -BatchContext $Context - + PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context | Get-AzureBatchJob -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:15:44 PM +DisplayName : +ETag : 0x8D2953633DD13E1 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : MyJobSchedule:job-1 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:15:44 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:15:44 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode03 in the pool with id MyPool. The file contents are then copied to the user supplied Stream. + This command gets all jobs under the job schedule with ID MyJobSchedule. @@ -1348,11 +1378,15 @@ - Get-AzureBatchComputeNode + Get-AzureBatchJobSchedule + + + + Remove-AzureBatchJob - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -1361,7 +1395,7 @@ Get-AzureBatchNodeFileContent - Downloads the specified Azure Batch node file. + Gets a Batch node file. @@ -1371,187 +1405,187 @@ - The Get-AzureBatchNodeFileContent cmdlet gets the specified Azure Batch node file and saves it to the specified file location or to the user supplied stream. + The Get-AzureBatchNodeFileContent cmdlet gets an Azure Batch node file and saves it as a file or to a stream. Get-AzureBatchNodeFileContent - - PoolId + + Name - Specifies the id of the pool containing the compute node. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String - - ComputeNodeId + + JobId - Specifies the id of the compute node containing the node file. + Specifies the ID of the job that contains the target task. String - - Name + + Profile - Specifies the name of the node file to download. You cannot use wildcards. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - Profile + TaskId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the task. - AzureProfile + String BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext DestinationPath - Specifies the file path where the node file will be downloaded. + Specifies the file path where this cmdlet saves the node file. String Get-AzureBatchNodeFileContent - - PoolId - - Specifies the id of the pool containing the compute node. - - String - - - ComputeNodeId - - Specifies the id of the compute node containing the node file. - - String - - - Name - - Specifies the name of the node file to download. You cannot use wildcards. - - String - Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext DestinationStream - Specifies the stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. Stream - - - Get-AzureBatchNodeFileContent - + JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String - + + Name + + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. + + String + + TaskId - Specifies the id of the task. + Specifies the ID of the task. String - + + + Get-AzureBatchNodeFileContent + + PoolId + + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. + + String + + + ComputeNodeId + + Specifies the ID of the compute node that contains the node file that this cmdlet returns. + + String + + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationPath + DestinationStream - Specifies the file path where the node file will be saved. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. - String + Stream Get-AzureBatchNodeFileContent - - JobId + + PoolId - Specifies the id of the job containing the specified target task. + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. - String + String - - TaskId + + ComputeNodeId - Specifies the id of the task. + Specifies the ID of the compute node that contains the node file that this cmdlet returns. String - + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationStream + DestinationPath - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the file path where this cmdlet saves the node file. - Stream + String @@ -1559,30 +1593,30 @@ InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationPath + DestinationStream - Specifies the file path where the node file will be saved. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. - String + Stream @@ -1590,30 +1624,30 @@ InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationStream + DestinationPath - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the file path where this cmdlet saves the node file. - Stream + String @@ -1621,7 +1655,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -1630,10 +1664,10 @@ none - + ComputeNodeId - Specifies the id of the compute node containing the node file. + Specifies the ID of the compute node that contains the node file that this cmdlet returns. String @@ -1645,7 +1679,7 @@ DestinationPath - Specifies the file path where the node file will be saved. + Specifies the file path where this cmdlet saves the node file. String @@ -1657,7 +1691,7 @@ DestinationStream - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. Stream @@ -1666,10 +1700,10 @@ none - + InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile @@ -1681,7 +1715,7 @@ JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String @@ -1690,10 +1724,10 @@ none - + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String @@ -1702,26 +1736,26 @@ none - - Profile + + PoolId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. - AzureProfile + String - AzureProfile + String none - - PoolId + + Profile - Specifies the id of the pool containing the compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -1729,7 +1763,7 @@ TaskId - Specifies the id of the task. + Specifies the ID of the task. String @@ -1777,16 +1811,15 @@ - Example 1: Get a Batch node file associated with a task and save it to a specified file path + Example 1: Get a Batch node file associated with a task and save the file - - PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "MyTask01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "Task01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file named StdOut.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task MyTask01 under job Job01. + This command gets the node file that is named StdOut.txt, and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task that has the ID Task01 for the job that has the ID Job01. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -1797,16 +1830,15 @@ - Example 2: Get a Batch node file and save it to a specified file path using pipelining + Example 2: Get a Batch node file and save it to a specified file path using the pipeline - - PS C:\>Get-AzureBatchNodeFile -JobId "Job02" -TaskId "MyTask02" -Name "StdErr.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFile -JobId "Job02" -TaskId "Task02" -Name "StdErr.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file named StdErr.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task MyTask02 under job Job02. + This command gets the node file that is named StdErr.txt by using the Get-AzureBatchNodeFile cmdlet. The command passes that file to the current cmdlet by using the pipeline operator. The current cmdlet saves that file to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with the task that has the ID Task02 for the job that has the ID Job02. @@ -1817,16 +1849,17 @@ - Example 3: Get a Batch node file associated with a task and save it to a specified stream + Example 3: Get a Batch node file associated with a task and direct it to a stream - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -JobId "Job03" -TaskId "MyTask11" -Name "stdout.txt" -DestinationStream $Stream -BatchContext $Context - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" +PS C:\> Get-AzureBatchNodeFileContent -JobId "Job03" -TaskId "Task11" -Name "stdout.txt" -DestinationStream $Stream -BatchContext $Context + - This command gets the node file named StdOut.txt from the task with id "MyTask11" under job Job03. The file contents are saved to the user supplied stream. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets the node file that is named StdOut.txt from the task that has the ID Task11 for the job that has the ID Job03. The command directs file contents to the stream in $Stream. @@ -1837,16 +1870,15 @@ - Example 4: Get a node file from a compute node and save it to a specified path + Example 4: Get a node file from a compute node and save it - - PS C:\>Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file is saved to the E:\PowerShell\StdOut.txt file path on the local machine. + This command gets the node file Startup\StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool01. The command saves the file to the E:\PowerShell\StdOut.txt file path on the local computer. @@ -1857,16 +1889,15 @@ - Example 5: Get a node file from a compute node and save it to a specified path using pipelining + Example 5: Get a node file from a compute node and save it by using the pipeline - - PS C:\>Get-AzureBatchNodeFile -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file is saved to the E:\PowerShell\StdOut.txt file path on the local machine. + This command gets the node file Startup\StdOut.txt by using Get-AzureBatchNodeFile from the compute node that has the ID ComputeNode01. The compute node is in the pool that has the ID Pool01. The command passes that node file to the current cmdlet. That cmdlet saves the file to the E:\PowerShell\StdOut.txt file path on the local computer. @@ -1877,16 +1908,17 @@ - Example 6: Get a node file from a compute node and save it to a specified stream + Example 6: Get a node file from a compute node and direct it to a stream - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" +PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file contents are saved to the user supplied stream. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets the node file that is named StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool01. The command directs file contents to the stream in $Stream. @@ -1899,15 +1931,15 @@ - Get-AzureBatchNodeFile + Get-AzureBatchAccountKeys - Get-AzureBatchAccountKeys + Get-AzureBatchNodeFile - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -1916,7 +1948,7 @@ Get-AzureBatchNodeFile - Gets the properties of the Azure Batch node files of the specified task or compute node. + Gets the properties of Batch node files. @@ -1926,271 +1958,271 @@ - The Get-AzureBatchNodeFile cmdlet gets the properties of the Azure Batch node files of the specified task or compute node. + The Get-AzureBatchNodeFile cmdlet gets the properties of the Azure Batch node files of a task or compute node. To narrow your results, you can specify a filter. If you specify a task, but not a filter, this cmdlet returns properties for all node files for that task. If you specify a compute node, but not a filter, this cmdlet returns properties for all node files for that compute node. Get-AzureBatchNodeFile - - JobId + + PoolId - Specifies the id of the job containing the specified target task. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. String - - TaskId + + ComputeNodeId - Specifies the id of the task. + Specifies the ID of the compute node that contains the Batch node files. String + + Name + + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Get-AzureBatchNodeFile Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - - Get-AzureBatchNodeFile JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String TaskId - Specifies the id of the task. + Specifies the ID of the task for which this cmdlet gets properties of node files. String + + + Get-AzureBatchNodeFile Name - Specifies the name of the node file to retrieve. You cannot use wildcards. + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + JobId + + Specifies the ID of the job that contains the target task. + + String + + + TaskId + + Specifies the ID of the task for which this cmdlet gets properties of node files. + + String + Get-AzureBatchNodeFile Task - Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the task, as a PSCloudTask object, with which the node files are associated. To obtain a task object, use the Get-AzureBatchTask cmdlet. PSCloudTask Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + Get-AzureBatchNodeFile PoolId - Specifies the id of the pool that contains the compute node. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. - String + String ComputeNodeId - Specifies the id of the compute node that contains the files. + Specifies the ID of the compute node that contains the Batch node files. String Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates the cmdlet performs a recursive search of files. Otherwise, the cmdlet returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext Get-AzureBatchNodeFile - - PoolId + + ComputeNode - Specifies the id of the pool that contains the compute node. + Specifies the compute node, as a PSComputeNode object, that contains the Batch node files. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - String + PSComputeNode - - Name + + Filter - Specifies the name of the file to retrieve from the compute node. You cannot use wildcards. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String + + MaxCount + + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - ComputeNodeId + Recursive - Specifies the id of the compute node that contains the files. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. - String - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Get-AzureBatchNodeFile - - Filter - - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. - - String - - - ComputeNode - - Specifies the PSComputeNode object representing the compute node that contains the files. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. - - PSComputeNode - - - MaxCount - - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. - - Int32 - - - Profile - - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - - AzureProfile - - - Recursive - - Indicates the cmdlet performs a recursive search of files. Otherwise, the cmdlet returns only the files at the directory root. - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2200,7 +2232,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2212,7 +2244,7 @@ ComputeNode - Specifies the PSComputeNode object representing the compute node that contains the files. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the compute node, as a PSComputeNode object, that contains the Batch node files. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. PSComputeNode @@ -2224,7 +2256,7 @@ ComputeNodeId - Specifies the id of the compute node that contains the files. + Specifies the ID of the compute node that contains the Batch node files. String @@ -2236,7 +2268,7 @@ Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String @@ -2245,10 +2277,10 @@ none - + JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String @@ -2260,7 +2292,7 @@ MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 @@ -2269,10 +2301,10 @@ none - + Name - Specifies the name of the node file to retrieve. You cannot use wildcards. + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. String @@ -2284,9 +2316,9 @@ PoolId - Specifies the id of the pool that contains the compute node. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. - String + String String @@ -2296,7 +2328,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -2308,7 +2340,7 @@ Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. SwitchParameter @@ -2320,7 +2352,7 @@ Task - Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the task, as a PSCloudTask object, with which the node files are associated. To obtain a task object, use the Get-AzureBatchTask cmdlet. PSCloudTask @@ -2329,10 +2361,10 @@ none - + TaskId - Specifies the id of the task. + Specifies the ID of the task for which this cmdlet gets properties of node files. String @@ -2379,22 +2411,20 @@ - Example 1: Get the properties of an Azure Batch node file associated with a task + Example 1: Get the properties of a node file associated with a task - - PS C:\>Get-AzureBatchNodeFile -JobId "Job-000001" -TaskId "MyTask" -Name "Stdout.txt" -BatchContext $Context - IsDirectory Name Properties Url + PS C:\>Get-AzureBatchNodeFile -JobId "Job-000001" -TaskId "Task26" -Name "Stdout.txt" -BatchContext $Context +IsDirectory Name Properties Url - ----------- ---- ---------- --- +----------- ---- ---------- --- - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the properties of the StdOut.txt node file associated with the task with id MyTask in job Job-000001. + This command gets the properties of the StdOut.txt node file associated with the task that has the ID Task26 in the job that has the ID Job-000001. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -2405,23 +2435,21 @@ - Example 2: Get the properties of all Azure Batch node files associated with a task using a filter + Example 2: Get the properties of node files associated with a task by using a filter - - PS C:\>Get-AzureBatchNodeFile -JobId "Job-00002" -TaskId "MyTask" -Filter "startswith(name,'St')" -BatchContext $Context - IsDirectory Name Properties Url - - ----------- ---- ---------- --- + PS C:\>Get-AzureBatchNodeFile -JobId "Job-00002" -TaskId "Task26" -Filter "startswith(name,'St')" -BatchContext $Context +IsDirectory Name Properties Url - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +----------- ---- ---------- --- - +False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the properties of the node files whose names start with st and are associated with task MyTask under job Job-00002. + This command gets the properties of the node files whose names start with st and are associated with task that has the ID Task26 under job that has the ID Job-00002. @@ -2432,27 +2460,25 @@ - Example 3: Recursively get the properties of all Azure Batch node files associated with a task + Example 3: Recursively get the properties of node files associated with a task - - PS C:\>Get-AzureBatchTask "Job-00003" "MyTask3" -BatchContext $Context | Get-AzureBatchNodeFile -Recursive -BatchContext $Context + PS C:\>Get-AzureBatchTask "Job-00003" "Task31" -BatchContext $Context | Get-AzureBatchNodeFile -Recursive -BatchContext $Context +IsDirectory Name Properties Url - IsDirectory Name Properties Url +----------- ---- ---------- --- - ----------- ---- ---------- --- +False ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +True wd https://cmdletexample.westus.Batch.contoso... +False wd\newFile.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - True wd https://cmdletexample.westus.Batch.contoso... - False wd\newFile.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - + - This command gets the properties of all files associated with the task with id MyTask3 in job Job-00003. Since the Recursive parameter is present, a recursive file search is performed, and the wd\newFile.txt node file is returned. + This command gets the properties of all files associated with the task that has the ID Task31 in job Job-00003. This command specifies the Recursive parameter. Therefore, the cmdlet performs a recursive file search is performed, and returns the wd\newFile.txt node file. @@ -2463,20 +2489,18 @@ - Example 4: Get a single file from a compute node in a specified pool + Example 4: Get a single file from a compute node - - PS C:\>Get-AzureBatchNodeFile -PoolId "myPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool22" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the file named Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool MyPool. + This command gets the file that is named Startup\StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. @@ -2487,24 +2511,22 @@ - Example 5: Get all files under a specific directory from a compute node in a specified pool + Example 5: Get all files under a folder from a compute node - - PS C:\>Get-AzureBatchNodeFile -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Filter "startswith(name,'startup')" -Recursive -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True startup https://cmdletexample.westus.Batch.contoso... - False startup\ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False startup\stderr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - True startup\wd https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool22" -ComputeNodeId "ComputeNode01" -Filter "startswith(name,'startup')" -Recursive -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +True startup https://cmdletexample.westus.Batch.contoso... +False startup\ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False startup\stderr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +True startup\wd https://cmdletexample.westus.Batch.contoso... + - This command gets all the files under the startup directory from the compute node with id ComputeNode01 in pool MyPool. + This command gets all the files under the startup folder from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. This cmdlet specifies the Recursive parameter. @@ -2515,22 +2537,20 @@ - Example 6: Get all files from the root directory of a specific compute node + Example 6: Get files from the root folder of a compute node - - PS C:\>Get-AzureBatchComputeNode "MyPool" -Id "ComputeNode01" -BatchContext $Context | Get-AzureBatchNodeFile -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True shared https://cmdletexample.westus.Batch.contoso... - True startup https://cmdletexample.westus.Batch.contoso... - True workitems https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchComputeNode "Pool22" -Id "ComputeNode01" -BatchContext $Context | Get-AzureBatchNodeFile -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +True shared https://cmdletexample.westus.Batch.contoso... +True startup https://cmdletexample.westus.Batch.contoso... +True workitems https://cmdletexample.westus.Batch.contoso... + - This command gets all the files at the root directory of the compute node with id ComputeNode01 in the pool with id MyPool. + This command gets all the files at the root folder of the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. @@ -2547,149 +2567,97 @@ - Get-AzureBatchTask + Get-AzureBatchComputeNode - Get-AzureBatchComputeNode + Get-AzureBatchTask - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchTask + Get-AzureBatchPool - Gets the Azure Batch tasks for the specified job. + Gets Batch pools under the specified Batch account. Get - AzureBatchTask + AzureBatchPool - The Get-AzureBatchTask cmdlet gets the Azure Batch tasks for the job specified by either the JobId parameter or the Job parameter. You can use the Id parameter to get a single task, or you can use the Filter parameter to get the tasks that match an OData filter. + The Get-AzureBatchPool cmdlet gets the Azure Batch pools under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single pool, or you can use the Filter parameter to get the pools that match an OData filter. - Get-AzureBatchTask - - JobId - - Specifies the id of the job which contains the tasks. - - String - + Get-AzureBatchPool Filter - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. String MaxCount - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of pools to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Get-AzureBatchTask - - JobId - - Specifies the id of the job which contains the tasks. - - String - - - Id - - Specifies the id of the task to retrieve. Wildcards are not permitted. - - String - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchTask - - Job - - Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - - Filter + Get-AzureBatchPool + + Id - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the ID of the pool to retrieve. You cannot specify wildcard characters. String - - MaxCount - - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. - - Int32 - Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2701,7 +2669,7 @@ Filter - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. String @@ -2710,24 +2678,12 @@ none - - Job - - Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - PSCloudJob - - - none - - - JobId + + Id - Specifies the id of the job which contains the tasks. + Specifies the ID of the pool to retrieve. You cannot specify wildcard characters. - String + String String @@ -2737,7 +2693,7 @@ MaxCount - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of pools to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 @@ -2746,22 +2702,10 @@ none - - Id - - Specifies the id of the task to retrieve. Wildcards are not permitted. - - String - - String - - - none - Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -2791,7 +2735,7 @@ - PSCloudTask + PSCloudPool @@ -2808,36 +2752,44 @@ - Example 1: Get a task by id + Example 1: Get a pool by ID - - PS C:\>Get-AzureBatchTask -JobId "Job01" -Id "MyTask" -BatchContext $Context + PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context +AllocationState : Resizing +AllocationStateTransitionTime : 7/25/2015 9:30:28 PM +AutoScaleEnabled : False +AutoScaleFormula : +AutoScaleRun : +CertificateReferences : +CreationTime : 7/25/2015 9:30:28 PM +CurrentDedicated : 0 +CurrentOSVersion : * +DisplayName : +ETag : 0x8D29538429CF04C +Id : MyPool +InterComputeNodeCommunicationEnabled : False +LastModified : 7/25/2015 9:30:28 PM +MaxTasksPerComputeNode : 1 +Metadata : +OSFamily : 4 +ResizeError : +ResizeTimeout : 00:05:00 +TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy +StartTask : +State : Active +StateTransitionTime : 7/25/2015 9:30:28 PM +Statistics : +TargetDedicated : 1 +TargetOSVersion : * +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool +VirtualMachineSize : small - AffinityInformation : - CommandLine : cmd /c dir /s - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 7/25/2015 11:24:52 PM - DisplayName : - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask - LastModified : 7/25/2015 11:24:52 PM - PreviousState : Running - PreviousStateTransitionTime : 7/25/2015 11:24:59 PM - ResourceFiles : - RunElevated : False - State : Completed - StateTransitionTime : 7/25/2015 11:24:59 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01/tasks/MyTask - + - This command gets the task with id MyTask under job Job01. + This command gets the pool with ID MyPool. @@ -2848,53 +2800,43 @@ - Example 2: Get all completed tasks from a specified job + Example 2: Get all pools using an OData filter - - PS C:\>Get-AzureBatchTask -JobId "Job02" -Filter "state eq 'completed'" -BatchContext $Context - AffinityInformation : - CommandLine : cmd /c dir /s - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 3/24/2015 10:21:51 PM - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask - LastModified : 3/24/2015 10:21:51 PM - PreviousState : Running - PreviousStateTransitionTime : 3/24/2015 10:22:00 PM - ResourceFiles : - RunElevated : False - State : Completed - StateTransitionTime : 3/24/2015 10:22:00 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask - - AffinityInformation : - CommandLine : cmd /c echo hello > newFile.txt - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 3/24/2015 10:21:51 PM - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask2 - LastModified : 3/24/2015 10:23:35 PM - PreviousState : Running - PreviousStateTransitionTime : 3/24/2015 10:23:37 PM - ResourceFiles : - RunElevated : True - State : Completed - StateTransitionTime : 3/24/2015 10:23:37 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask2 - + PS C:\>Get-AzureBatchPool -Filter "startswith(id,'My')" -BatchContext $Context +AllocationState : Resizing +AllocationStateTransitionTime : 7/25/2015 9:30:28 PM +AutoScaleEnabled : False +AutoScaleFormula : +AutoScaleRun : +CertificateReferences : +CreationTime : 7/25/2015 9:30:28 PM +CurrentDedicated : 0 +CurrentOSVersion : * +DisplayName : +ETag : 0x8D29538429CF04C +Id : MyPool +InterComputeNodeCommunicationEnabled : False +LastModified : 7/25/2015 9:30:28 PM +MaxTasksPerComputeNode : 1 +Metadata : +OSFamily : 4 +ResizeError : +ResizeTimeout : 00:05:00 +TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy +StartTask : +State : Active +StateTransitionTime : 7/25/2015 9:30:28 PM +Statistics : +TargetDedicated : 1 +TargetOSVersion : * +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool +VirtualMachineSize : small + - This command gets the completed tasks from the job with id Job02. + This command gets the pools whose IDs start with My by using the Filter parameter. @@ -2907,153 +2849,184 @@ - New-AzureBatchTask + Get-AzureBatchAccountKeys - Remove-AzureBatchTask + New-AzureBatchPool - Get-AzureBatchAccountKeys + Remove-AzureBatchPool - Get-AzureBatchJob + RMAzure_Batch_Cmdlets - Get-AzureBatchComputeNode + Get-AzureBatchRemoteDesktopProtocolFile - Gets Azure Batch compute nodes under the specified pool. + Gets an RDP file from a compute node. Get - AzureBatchComputeNode + AzureBatchRemoteDesktopProtocolFile - The Get-AzureBatchComputeNode cmdlet gets Azure Batch compute nodes under the pool specified by either the PoolId or Pool parameters. You can use the Id parameter to get a single compute node, or you can use the Filter parameter to get the compute nodes that match an OData filter. + The Get-AzureBatchRemoteDesktopProtocolFile cmdlet gets a Remote Desktop Protocol (RDP) file from a compute node and saves it as a file or to a user supplied stream. - Get-AzureBatchComputeNode - - Filter + Get-AzureBatchRemoteDesktopProtocolFile + + PoolId - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String - - MaxCount + + ComputeNodeId - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node to which the .rdp file points. - Int32 + String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - PoolId + + DestinationPath - Specifies the id of the pool which contains the compute nodes. + Specifies the file path where this cmdlet saves the .rdp file. - String + String - Get-AzureBatchComputeNode - + Get-AzureBatchRemoteDesktopProtocolFile + PoolId - Specifies the id of the pool which contains the compute nodes. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String - - Id + + ComputeNodeId - Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. + Specifies the ID of the compute node to which the .rdp file points. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + DestinationStream + + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. + + Stream + - Get-AzureBatchComputeNode + Get-AzureBatchRemoteDesktopProtocolFile - Pool + ComputeNode - Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - PSCloudPool + PSComputeNode - Filter + Profile - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - MaxCount + + BatchContext - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - Int32 + BatchAccountContext + + + DestinationPath + + Specifies the file path where this cmdlet saves the .rdp file. + + String + + + + Get-AzureBatchRemoteDesktopProtocolFile + + ComputeNode + + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. + + PSComputeNode Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + DestinationStream + + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. + + Stream + - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -3062,60 +3035,60 @@ none - - Filter + + ComputeNode - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - String + PSComputeNode - String + PSComputeNode none - - MaxCount + + ComputeNodeId - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node to which the .rdp file points. - Int32 + String - Int32 + String none - - Id + + DestinationPath - Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. + Specifies the file path where this cmdlet saves the .rdp file. - String + String String none - - Pool + + DestinationStream - Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. - PSCloudPool + Stream - PSCloudPool + Stream none - + PoolId - Specifies the id of the pool which contains the compute nodes. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String String @@ -3125,7 +3098,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3155,7 +3128,8 @@ - PSComputeNode + + @@ -3172,32 +3146,15 @@ - Example 1: Get a compute node by id from a specified pool + Example 1: Get an RDP file from a specified compute node and save the file - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - + PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "Pool06" -ComputeNodeId "ComputeNode01" -DestinationPath "C:\PowerShell\ComputeNode01.rdp" -BatchContext $Context + - This command gets the compute node with id tvm-2316545714_1-20150725t213220z from the pool with id MyPool. + This command gets an RDP file from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool06. The command saves the .rdp file as C:\PowerShell\MyComputeNode.rdp. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -3208,47 +3165,15 @@ - Example 2: Get all idle compute nodes from a specified pool + Example 2: Get an RDP file from a compute node and save the file by using the pipeline - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Filter "state eq 'idle'" -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - Id : tvm-2316545714_2-20150726t172920z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z - State : Idle - StateTransitionTime : 7/26/2015 5:33:58 PM - LastBootTime : 7/26/2015 5:33:58 PM - AllocationTime : 7/26/2015 5:29:20 PM - IPAddress : 100.116.112.58 - AffinityId : TVM:tvm-2316545714_2-20150726t172920z - VirtualMachineSize : small - TotalTasksRun : 0 - StartTaskInformation : - RecentTasks : - StartTask : - CertificateReferences : - Errors : - + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Id "ComputeNode02" -BatchContext $Context | Get-AzureBatchRemoteDesktopProtocolFile -DestinationPath "C:\PowerShell\MyComputeNode02.rdp" -BatchContext $Context + - This command gets all idle compute nodes contained in the pool with id MyPool. + This command gets the compute node that has the ID ComputeNode02 in the pool that has the ID Pool06. The command passes that compute node to the current cmdlet by using the pipeline operator. The current cmdlet gets an .rpd file from the compute node, and then saves the contents as a file that is named C:\PowerShell\MyComputeNode02.rdp. @@ -3259,47 +3184,17 @@ - Example 3: Get all compute nodes in a specified pool + Example 3: Get a RDP file from a specified compute node and direct it to a stream - - PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context | Get-AzureBatchComputeNode -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - Id : tvm-2316545714_2-20150726t172920z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z - State : Idle - StateTransitionTime : 7/26/2015 5:33:58 PM - LastBootTime : 7/26/2015 5:33:58 PM - AllocationTime : 7/26/2015 5:29:20 PM - IPAddress : 100.116.112.58 - AffinityId : TVM:tvm-2316545714_2-20150726t172920z - VirtualMachineSize : small - TotalTasksRun : 0 - StartTaskInformation : - RecentTasks : - StartTask : - CertificateReferences : - Errors : - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" + PS C:\> Get-AzureBatchRemoteDesktopProtocolFile "Pool06" -ComputeNodeId "ComputeNode03" -DestinationStream $Stream -BatchContext $Context + - This command gets all compute nodes from the pool with id MyPool. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets an .rdp file from the compute node that has the ID ComputeNode03 in the pool that has the ID Pool06. The command directs file contents to the stream in $Stream. @@ -3312,101 +3207,149 @@ - Get-AzureBatchNodeFile - - - - Get-AzureBatchNodeFileContent + Get-AzureBatchAccountKeys - Get-AzureBatchPool + Get-AzureBatchComputeNode - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchJobSchedule + Get-AzureBatchTask - Gets Azure Batch job schedules under the specified Batch account. + Gets the Batch tasks for the specified job. Get - AzureBatchJobSchedule + AzureBatchTask - The Get-AzureBatchJobSchedule cmdlet gets Azure Batch job schedules under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single job schedule, or you can use the Filter parameter to get the job schedules that match an OData filter. + The Get-AzureBatchTask cmdlet gets the Azure Batch tasks for the job specified by either the JobId parameter or the Job parameter. You can use the Id parameter to get a single task, or you can use the Filter parameter to get the tasks that match an OData filter. - Get-AzureBatchJobSchedule + Get-AzureBatchTask + + JobId + + Specifies the ID of the job which contains the tasks. + + String + Filter - Specifies the OData filter clause to use when querying for job schedules. If no filter is specified, then all job schedules under the Batch account specified with the BatchContext parameter will be returned. + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. String MaxCount - Specifies the maximum number of job schedules to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchJobSchedule - + Get-AzureBatchTask + + JobId + + Specifies the ID of the job which contains the tasks. + + String + + Id - Specifies the id of the job schedule to retrieve. Wildcards are not permitted. + Specifies the ID of the task to retrieve. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Get-AzureBatchTask + + Job + + Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + + Filter + + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + + String + + + MaxCount + + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -3418,7 +3361,7 @@ Filter - Specifies the OData filter clause to use when querying for job schedules. If no filter is specified, then all job schedules under the Batch account specified with the BatchContext parameter will be returned. + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. String @@ -3427,34 +3370,58 @@ none - - MaxCount + + Id - Specifies the maximum number of job schedules to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the ID of the task to retrieve. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + Job - Specifies the id of the job schedule to retrieve. Wildcards are not permitted. + Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - String + PSCloudJob + + PSCloudJob + + + none + + + JobId + + Specifies the ID of the job which contains the tasks. + + String String none + + MaxCount + + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + + Int32 + + + none + Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3484,7 +3451,7 @@ - PSCloudJobSchedule + PSCloudTask @@ -3501,33 +3468,34 @@ - Example 1: Get a job schedule by id + Example 1: Get a task by ID - - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context - - CreationTime : 7/25/2015 9:15:43 PM - DisplayName : - ETag : 0x8D2953633427FCA - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/25/2015 9:15:43 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/25/2015 9:15:43 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule - - + PS C:\>Get-AzureBatchTask -JobId "Job01" -Id "MyTask" -BatchContext $Context +AffinityInformation : +CommandLine : cmd /c dir /s +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 7/25/2015 11:24:52 PM +DisplayName : +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask +LastModified : 7/25/2015 11:24:52 PM +PreviousState : Running +PreviousStateTransitionTime : 7/25/2015 11:24:59 PM +ResourceFiles : +RunElevated : False +State : Completed +StateTransitionTime : 7/25/2015 11:24:59 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01/tasks/MyTask + - This command gets the job schedule with id MyJobSchedule. + This command gets the task with ID MyTask under job Job01. @@ -3538,49 +3506,52 @@ - Example 2: Get all job schedules by using an id filter + Example 2: Get all completed tasks from a specified job - - PS C:\>Get-AzureBatchJobSchedule -Filter "startswith(id,'My')" -BatchContext $Context - - CreationTime : 7/25/2015 9:15:43 PM - DisplayName : - ETag : 0x8D2953633427FCA - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/25/2015 9:15:43 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/25/2015 9:15:43 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule + PS C:\>Get-AzureBatchTask -JobId "Job02" -Filter "state eq 'completed'" -BatchContext $Context +AffinityInformation : +CommandLine : cmd /c dir /s +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 3/24/2015 10:21:51 PM +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask +LastModified : 3/24/2015 10:21:51 PM +PreviousState : Running +PreviousStateTransitionTime : 3/24/2015 10:22:00 PM +ResourceFiles : +RunElevated : False +State : Completed +StateTransitionTime : 3/24/2015 10:22:00 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask - CreationTime : 7/26/2015 5:39:33 PM - DisplayName : - ETag : 0x8D295E12B1084B4 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule2 - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/26/2015 5:39:33 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/26/2015 5:39:33 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule2 - - +AffinityInformation : +CommandLine : cmd /c echo hello > newFile.txt +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 3/24/2015 10:21:51 PM +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask2 +LastModified : 3/24/2015 10:23:35 PM +PreviousState : Running +PreviousStateTransitionTime : 3/24/2015 10:23:37 PM +ResourceFiles : +RunElevated : True +State : Completed +StateTransitionTime : 3/24/2015 10:23:37 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask2 + - This command gets all job schedules whose ids start with My by using the Filter parameter. + This command gets the completed tasks from the job with ID Job02. @@ -3593,15 +3564,23 @@ - New-AzureBatchJobSchedule + Get-AzureBatchAccountKeys - Remove-AzureBatchJobSchedule + Get-AzureBatchJob - Get-AzureBatchAccountKeys + New-AzureBatchTask + + + + Remove-AzureBatchTask + + + + RMAzure_Batch_Cmdlets @@ -3620,7 +3599,7 @@ - The New-AzureBatchAccountKey cmdlet regenerates the specified key of the specified Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys. + The New-AzureBatchAccountKey cmdlet regenerates the specified key of the specified Azure Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys. @@ -3635,7 +3614,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3686,7 +3665,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3745,17 +3724,16 @@ - Example 1: Regenerate the primary account key on a named Batch account + Example 1: Regenerate the primary account key on a named batch account - - PS C:\>New-AzureBatchAccountKey -AccountName "cmdletexample" -KeyType "Primary" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>New-AzureBatchAccountKey -AccountName "CmdletExample" -KeyType "Primary" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus CmdletExample https://batch.core.contoso.net + This command regenerates the primary account key on the Batch account named CmdletExample. @@ -3773,13 +3751,17 @@ Get-AzureBatchAccountKeys + + RMAzure_Batch_Cmdlets + + New-AzureBatchAccount - Creates a new Azure Batch account. + Creates a new Batch account. @@ -3818,7 +3800,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3859,7 +3841,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3935,13 +3917,11 @@ - - PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" - - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample WestUS CmdletExampleRG https://batch.core.contoso.net + This command creates a new Batch account named cmdletexample using the CmdletExampleRG resource group in the WestUS location. @@ -3968,293 +3948,143 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - New-AzureBatchPool + New-AzureBatchComputeNodeUser - Creates a new pool in the Azure Batch service under the specified account. + Creates a user account on a Batch compute node. New - AzureBatchPool + AzureBatchComputeNodeUser - The New-AzureBatchPool cmdlet creates a new pool in the Azure Batch service under the account specified by the BatchContext parameter. + The New-AzureBatchComputeNodeUser cmdlet creates a user account on an Azure Batch compute node. - New-AzureBatchPool + New-AzureBatchComputeNodeUser - Id + PoolId - Specifies the id of the pool to create. + Specifies the ID of the pool that contains the compute node on which to create the user account. String - - AutoScaleFormula - - - Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see - https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - - - String - - - CertificateReferences + + ComputeNodeId - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + Specifies the ID of the compute node on which this cmdlet creates a user account. - PSCertificateReference[] + String - DisplayName + ExpiryTime - The display name of the pool. + Specifies the expiry time for the new user account. - String + DateTime - InterComputeNodeCommunicationEnabled + IsAdmin - Sets up the pool for direct communication between dedicated compute nodes. + Indicates that the cmdlet creates a user account that has administrative credentials. - MaxTasksPerComputeNode + Profile - Specifies the maximum number of tasks that can run on a single compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Int32 + AzureProfile - - Metadata + + BatchContext - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - IDictionary + BatchAccountContext - OSFamily + Name - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Specifies the name of the new local Windows account. String - - Profile + + Password - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the user account password. - AzureProfile + String + + + New-AzureBatchComputeNodeUser - TaskSchedulingPolicy + ComputeNode - Specifies the task scheduling policy (such as the ComputeNodeFillType). + Specifies the compute node, as a PSComputeNode object, on which this cmdlet creates a user account. - PSSchedulingPolicy + PSComputeNode - StartTask + ExpiryTime - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. + Specifies the expiry time for the new user account. - PSStartTask + DateTime - TargetOSVersion + IsAdmin - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Indicates that the cmdlet creates a user account that has administrative credentials. - String - - VirtualMachineSize + + Profile - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - - New-AzureBatchPool - - Id + + Name - Specifies the id of the pool to create. + Specifies the name of the new local Windows account. String - - CertificateReferences - - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node (ComputeNode) of the pool. - - PSCertificateReference[] - - - DisplayName - - The display name of the pool. - - String - - - InterComputeNodeCommunicationEnabled - - Sets up the pool for direct communication between dedicated compute nodes. - - - - MaxTasksPerComputeNode - - Specifies the maximum number of tasks that can run on a single compute node. - - Int32 - - - Metadata - - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. - - IDictionary - - - OSFamily - - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - ResizeTimeout - - Specifies the timeout for allocating compute nodes to the pool. - - TimeSpan - - - TaskSchedulingPolicy - - Specifies the task scheduling policy (such as the ComputeNodeFillType). - - PSSchedulingPolicy - - - StartTask - - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - - PSStartTask - - - TargetDedicated - - Specifies the target number of compute nodes to allocate to the pool. - - Int32 - - - TargetOSVersion - - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - VirtualMachineSize + Password - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - + Specifies the user account password. String - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - AutoScaleFormula - - - Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see - https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - - - String - - String - - - none - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -4263,24 +4093,24 @@ none - - CertificateReferences + + ComputeNode - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node (ComputeNode) of the pool. + Specifies the compute node, as a PSComputeNode object, on which this cmdlet creates a user account. - PSCertificateReference[] + PSComputeNode - PSCertificateReference[] + PSComputeNode none - - DisplayName + + ComputeNodeId - The display name of the pool. + Specifies the ID of the compute node on which this cmdlet creates a user account. - String + String String @@ -4288,45 +4118,45 @@ none - InterComputeNodeCommunicationEnabled + ExpiryTime - Sets up the pool for direct communication between dedicated compute nodes. + Specifies the expiry time for the new user account. - SwitchParameter + DateTime - SwitchParameter + DateTime none - MaxTasksPerComputeNode + IsAdmin - Specifies the maximum number of tasks that can run on a single compute node. + Indicates that the cmdlet creates a user account that has administrative credentials. - Int32 + SwitchParameter - Int32 + SwitchParameter none - - Metadata + + Name - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the name of the new local Windows account. - IDictionary + String - IDictionary + String none - - Id + + Password - Specifies the id of the pool to create. + Specifies the user account password. String @@ -4335,15 +4165,10 @@ none - - OSFamily + + PoolId - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Specifies the ID of the pool that contains the compute node on which to create the user account. String @@ -4355,7 +4180,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -4364,88 +4189,6 @@ none - - ResizeTimeout - - Specifies the timeout for allocating compute nodes to the pool. - - TimeSpan - - TimeSpan - - - none - - - TaskSchedulingPolicy - - Specifies the task scheduling policy (such as the ComputeNodeFillType). - - PSSchedulingPolicy - - PSSchedulingPolicy - - - none - - - StartTask - - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - - PSStartTask - - PSStartTask - - - none - - - TargetDedicated - - Specifies the target number of compute nodes to allocate to the pool. - - Int32 - - Int32 - - - none - - - TargetOSVersion - - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - String - - - none - - - VirtualMachineSize - - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - - - String - - String - - - none - @@ -4485,16 +4228,15 @@ - Example 1: Create a new pool using the TargetDedicated parameter set + Example 1: Create a user account that has administrative credentials - - PS C:\>New-AzureBatchPool -Id "MyPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -BatchContext $Context - + PS C:\>New-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "TestUser" -Password "Password" -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $Context + - This command creates a new pool with id MyPool using the TargetDedicated parameter set. The target allocation is three compute nodes. The pool will use small virtual machines imaged with the latest operating system version of family four. + This command creates a user account on the compute node that has the ID ComputeNode01. The node is in the pool that has the ID MyPool01. The user name is TestUser, the password is Password, the account expires in seven days, and the account is has administrative credentials. @@ -4505,16 +4247,15 @@ - Example 2: Create a new pool using the AutoScale parameter set + Example 2: Create a user account on a compute node by using the pipeline - - PS C:\>New-AzureBatchPool -Id "AutoScalePool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -AutoScaleFormula '$TargetDedicated=2;' -BatchContext $Context - + PS C:\>Get-AzureBatchComputeNode "MyPool01" -ComputeNodeId "ComputeNode01" -BatchContext $Context | New-AzureBatchComputeNodeUser -Name "TestUser" -Password "Password" -BatchContext $Context + - This command creates a new pool with id AutoScalePool using the AutoScale parameter set. The pool will use small virtual machines imaged with the latest operating system version of family four, and the target number of compute nodes will be determined by the Autoscale formula. + This command gets the compute node named ComputeNode01 by using the Get-AzureBatchComputeNode cmdlet. That node is in the pool that has the ID MyPool01. The command passes that compute node to the current cmdlet by using the pipeline operator. The command creates a user account that has the user name TestUserand the password Password. @@ -4527,212 +4268,98 @@ - Get-AzureBatchPool + Get-AzureBatchAccountKeys - Remove-AzureBatchPool + Get-AzureBatchComputeNode - Get-AzureBatchAccountKeys + Remove-AzureBatchComputeNodeUser + + + + RMAzure_Batch_Cmdlets - New-AzureBatchTask + New-AzureBatchJobSchedule - Creates a new Azure Batch task under the specified job. + Creates a job schedule in the Batch service. New - AzureBatchTask + AzureBatchJobSchedule - The New-AzureBatchTask cmdlet creates a new Azure Batch task under the job specified by the JobId parameter or the Job parameter. + The New-AzureBatchJobSchedule cmdlet creates a job schedule in the Azure Batch service. The BatchAccountContext parameter specifies the account in which this cmdlet creates the schedule. - New-AzureBatchTask - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - - CommandLine + New-AzureBatchJobSchedule + + Id - Specifies the command-line command for the task. + Specifies the ID of the job schedule that this cmdlet creates. String DisplayName - The display name of the task. + Specifies a display name for the job schedule. String - EnvironmentSettings + Metadata - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + Specifies metadata, as key/value pairs, to add to the job schedule. The key is the metadata name. The value is the metadata value. IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - ResourceFiles + + BatchContext - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. - - IDictionary - - - RunElevated - - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - - - - Constraints - - Specifies the execution constraints for the task. - - PSTaskConstraints - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - JobId - - Specifies the id of the job to create the task under. - - String - - - Id - - Specifies the id of the task to create. - - String - - - - New-AzureBatchTask - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - - CommandLine - - Specifies the command-line command for the task. - - String - - - DisplayName - - The display name of the task. - - String - - - EnvironmentSettings - - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. - - IDictionary - - - Job - - Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - ResourceFiles - - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. - - IDictionary - - - RunElevated - - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - - - - Constraints - - Specifies the execution constraints for the task. - - PSTaskConstraints - - - BatchContext + JobSpecification - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the details of the jobs that this cmdlet includes in the job schedule. - BatchAccountContext + PSJobSpecification - Id + Schedule - Specifies the id of the task to create. + Specifies the schedule that determines when to create jobs. - String + PSSchedule - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - PSAffinityInformation - - - none - BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -4741,22 +4368,10 @@ none - - CommandLine - - Specifies the command-line command for the task. - - String - - String - - - none - DisplayName - The display name of task. + Specifies a display name for the job schedule. String @@ -4765,46 +4380,10 @@ none - - EnvironmentSettings - - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. - - IDictionary - - IDictionary - - - none - - - Job - - Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - PSCloudJob - - - none - - - JobId - - Specifies the id of the job to create the task under. - - String - - String - - - none - - + Id - Specifies the id of the task to create. + Specifies the ID of the job schedule that this cmdlet creates. String @@ -4813,22 +4392,22 @@ none - - Profile + + JobSpecification - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the details of the jobs that this cmdlet includes in the job schedule. - AzureProfile + PSJobSpecification - AzureProfile + PSJobSpecification none - ResourceFiles + Metadata - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + Specifies metadata, as key/value pairs, to add to the job schedule. The key is the metadata name. The value is the metadata value. IDictionary @@ -4838,25 +4417,25 @@ none - RunElevated + Profile - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile none - - Constraints + + Schedule - Specifies the execution constraints for the task. + Specifies the schedule that determines when to create jobs. - PSTaskConstraints + PSSchedule - PSTaskConstraints + PSSchedule none @@ -4900,36 +4479,21 @@ - Example 1: Create a new Batch task - - - - - - PS C:\>New-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context - - - This command creates a new task with id MyTask under job Job-000001. The task will run the command-line "cmd /c dir /s". - - - - - - - - - - - Example 2: Create a new Batch task + Example 1: Create a job schedule - - PS C:\>Get-AzureBatchJob -Id "Job-000001" -BatchContext $Context | New-AzureBatchTask -Id "MyTask2" -CommandLine "cmd /c echo hello > newFile.txt" -RunElevated -BatchContext $Context - + PS C:\>$Schedule = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSSchedule" +PS C:\> $Schedule.RecurrenceInterval = [TimeSpan]::FromDays(1) +PS C:\> $JobSpecification = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSJobSpecification" +PS C:\> $JobSpecification.PoolInformation = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSPoolInformation" +PS C:\> $JobSpecification.PoolInformation.PoolId = "ContosoPool06" +PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -JobSpecification $JobSpecification -BatchContext $Context + - This command creates a new task with id MyTask2 under job Job-000001. The task will run the command-line "cmd /c echo hello > newFile.txt" with elevated permissions. + This example creates a job schedule. The first five commands create and modify PSSchedule, PSJobSpecification, and PSPoolInformation objects. The commands use the New-Object cmdlet and standard Azure PowerShell syntax. The commands store these objects in the $Schedule and $JobSpecification variables. + The final command creates a job schedule that has the ID JobSchedule17. This schedule creates jobs with a recurrence interval of one day. The jobs run on the pool that has the ID ContosoPool06, as specified in the fifth command. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -4942,155 +4506,133 @@ - Get-AzureBatchTask + Get-AzureBatchAccountKeys - Remove-AzureBatchTask + Get-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + Remove-AzureBatchJobSchedule - Get-AzureBatchJob + RMAzure_Batch_Cmdlets - New-AzureBatchComputeNodeUser + New-AzureBatchJob - Creates a new user account on the specified Azure Batch compute node. + Creates a job in the Batch service. New - AzureBatchComputeNodeUser + AzureBatchJob - The New-AzureBatchComputeNodeUser cmdlet creates a new user account on the specified Azure Batch compute node. + The New-AzureBatchJob cmdlet creates a job in the Azure Batch service in the account specified by the BatchAccountContext parameter. - New-AzureBatchComputeNodeUser - - PoolId + New-AzureBatchJob + + Id - Specifies the id of the pool containing the compute node to create the user account on. + Specifies an ID for the job. String - - ComputeNodeId + + CommonEnvironmentSettings - Specifies the id of the compute node to create the user account on. + Specifies the common environment variables, as key/value pairs, that are set for all tasks in the job. The key is the environment variable name. The value is the environment variable value. - String + IDictionary - ExpiryTime + Constraints - Specifies the expiry time of the new user. + Specifies the run constraints for the job. - DateTime + PSJobConstraints - IsAdmin + DisplayName - Indicates that the cmdlet will create the user with administrator privileges. + Specifies the display name for the job. + String - - Password + + JobManagerTask - Specifies the user account password. + Specifies the Job Manager task. The Batch service runs the Job Manager task when the job is started. - String + PSJobManagerTask - Profile + JobPreparationTask - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Job Preparation task. The Batch service runs the Job Preparation task on a compute node before it starts any tasks of that job on that compute node. - AzureProfile + PSJobPreparationTask - - BatchContext + + JobReleaseTask - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the Job Release task. The Batch service runs the Job Release task when the job ends. The Batch service runs the Job Release task on each compute node where it ran any task of the job. - BatchAccountContext + PSJobReleaseTask - - Name - - Specifies the name of the created local windows account. - - String - - - - New-AzureBatchComputeNodeUser - ExpiryTime + Metadata - Specifies the expiry time of the new user. + Specifies metadata, as key/value pairs, to add to the job. The key is the metadata name. The value is the metadata value. - DateTime + IDictionary - IsAdmin - - Indicates that the cmdlet will create the user with administrator privileges. - - - - Password + Priority - Specifies the user account password. + Specifies the priority of the job. Valid values are: integers from -1000 to 1000. A value of -1000 is the lowest priority. A value of 1000 is the highest priority. The default value is 0. - String + Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - ComputeNode - - Specifies the PSComputeNode object representing the compute node to create the user account on. - - PSComputeNode - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Name + PoolInformation - Specifies the name of the created local windows account. + Specifies the details of the pool on which the Batch service runs the tasks of the job. - String + PSPoolInformation - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -5100,45 +4642,45 @@ none - ExpiryTime + CommonEnvironmentSettings - Specifies the expiry time of the new user. + Specifies the common environment variables, as key/value pairs, that are set for all tasks in the job. The key is the environment variable name. The value is the environment variable value. - DateTime + IDictionary - DateTime + IDictionary none - IsAdmin + Constraints - Indicates that the cmdlet will create the user with administrator privileges. + Specifies the run constraints for the job. - SwitchParameter + PSJobConstraints - SwitchParameter + PSJobConstraints none - - Name + + DisplayName - Specifies the name of the created local windows account. + Specifies the display name for the job. - String + String String none - - Password + + Id - Specifies the user account password. + Specifies an ID for the job. String @@ -5147,50 +4689,86 @@ none - - PoolId + + JobManagerTask - Specifies the id of the pool containing the compute node to create the user account on. + Specifies the Job Manager task. The Batch service runs the Job Manager task when the job is started. - String + PSJobManagerTask - String + PSJobManagerTask none - Profile + JobPreparationTask - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Job Preparation task. The Batch service runs the Job Preparation task on a compute node before it starts any tasks of that job on that compute node. - AzureProfile + PSJobPreparationTask - AzureProfile + PSJobPreparationTask none - ComputeNode + JobReleaseTask - Specifies The PSComputeNode object representing the compute node to create the user account on. + Specifies the Job Release task. The Batch service runs the Job Release task when the job ends. The Batch service runs the Job Release task on each compute node where it ran any task of the job. - PSComputeNode + PSJobReleaseTask - PSComputeNode + PSJobReleaseTask none - - ComputeNodeId + + Metadata - Specifies the id of the compute node to create the user account on. + Specifies metadata, as key/value pairs, to add to the job. The key is the metadata name. The value is the metadata value. - String + IDictionary - String + IDictionary + + + none + + + PoolInformation + + Specifies the details of the pool on which the Batch service runs the tasks of the job. + + PSPoolInformation + + PSPoolInformation + + + none + + + Priority + + Specifies the priority of the job. Valid values are: integers from -1000 to 1000. A value of -1000 is the lowest priority. A value of 1000 is the highest priority. The default value is 0. + + Int32 + + Int32 + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile none @@ -5234,36 +4812,19 @@ - Example 1: Create a new user account on a compute node with administrator privileges - - - - - - PS C:\>New-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "TestUser" -Password "Password1234!" -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $Context - - - This command creates a new user account on the compute node with id ComputeNode01 in the pool with id MyPool01. The user name is TestUser, the password is Password1234!, the account expiry time is in seven days, and the account is created with administrator privileges. - - - - - - - - - - - Example 2: Create a new user account on a compute node + Example 1: Create a job - - PS C:\>Get-AzureBatchComputeNode "MyPool01" -ComputeNodeId "ComputeNode01" -BatchContext $Context | New-AzureBatchComputeNodeUser -Name "TestUser" -Password "Password1234!" -BatchContext $Context - + PS C:\>$PoolInformation = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSPoolInformation" +PS C:\> $PoolInformation.PoolId = "Pool22" +PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformation -BatchContext $Context + - This command creates a new user account on the ComputeNode01 compute node in the pool with id MyPool01. The user name is TestUser, the user password is Password1234!. + The first command creates a PSPoolInformation object by using the New-Object cmdlet. The command stores that object in the $PoolInformation variable. + The second command assigns the ID Pool22 to the PoolId property of the object in $PoolInformation. + The final command creates a job that has the ID ContosoJob35. Tasks added to the job run on the pool that has the ID Pool22. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -5276,439 +4837,329 @@ - Remove-AzureBatchComputeNodeUser + Get-AzureBatchAccountKeys - Get-AzureBatchAccountKeys + Get-AzureBatchJobSchedule + + + + Remove-AzureBatchJob - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - New-AzureBatchJobSchedule + New-AzureBatchPool - Creates a new job schedule in the Azure Batch service under the specified account. + Creates a new pool in the Batch service under the specified account. New - AzureBatchJobSchedule + AzureBatchPool - The New-AzureBatchJobSchedule cmdlet creates a new job schedule in the Azure Batch service under the account specified by the BatchAccountContext parameter. + The New-AzureBatchPool cmdlet creates a new pool in the Azure Batch service under the account specified by the BatchContext parameter. - New-AzureBatchJobSchedule - + New-AzureBatchPool + Id - Specifies the id of the job schedule to create. + Specifies the ID of the pool to create. String + + AutoScaleFormula + + Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see Define the Autoscaling Formula for a Pool (https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx) in the Microsoft Developer Network Library. + + String + + + CertificateReferences + + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + + PSCertificateReference[] + DisplayName - The display name of the job schedule. + Specifies the display name of the pool. String - - JobSpecification + + InterComputeNodeCommunicationEnabled - Specifies the details of the jobs to be created under the job schedule. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - PSJobSpecification + + + MaxTasksPerComputeNode + + Specifies the maximum number of tasks that can run on a single compute node. + + Int32 Metadata - Specifies metadata to add to the new job schedule. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - Schedule + + StartTask - Specifies the schedule that determines when jobs will be created. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - PSSchedule + PSStartTask - + + TargetOSVersion + + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. + + String + + + TaskSchedulingPolicy + + Specifies the task scheduling policy, such as the ComputeNodeFillType. + + PSTaskSchedulingPolicy + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + OSFamily + + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. + + String + + + VirtualMachineSize + + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. + + String + - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - BatchAccountContext - - - none - - - DisplayName - - The display name of the job schedule. - - String - - String - - - none - - - JobSpecification - - Specifies the details of the jobs to be created under the job schedule. - - PSJobSpecification - - PSJobSpecification - - - none - - - Metadata - - Specifies metadata to add to the new job schedule. For each key/value pair, set the key to the metadata name, and the value to the metadata value. - - IDictionary - - IDictionary - - - none - - - Id - - Specifies the id of the job schedule to create. - - String - - String - - - none - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - AzureProfile - - - none - - - Schedule - - Specifies the schedule that determines when jobs will be created. - - PSSchedule - - PSSchedule - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a job schedule - - - - - - PS C:\>$Schedule = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedule; - $Schedule.RecurrenceInterval = [TimeSpan]::FromDays(1) - $JobSpecification = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobSpecification; - $JobSpecification.PoolInformation = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation; - $JobSpecification.PoolInformation.PoolId = "MyPool" - New-AzureBatchJobSchedule -Id "MyJobSchedule" -Schedule $Schedule -JobSpecification $JobSpecification -BatchContext $Context - - - This command creates a job schedule with id MyJobSchedule. Jobs will be created with a recurrence interval of 1 day. Tasks added to the created jobs will run on pool MyPool. - - - - - - - - - - - - - Get-AzureBatchJobSchedule - - - - Remove-AzureBatchJobSchedule - - - - Get-AzureBatchAccountKeys - - - - - - - New-AzureBatchJob - - Creates a new job in the Azure Batch service under the specified account. - - - - - New - AzureBatchJob - - - - The New-AzureBatchJob cmdlet creates a new job in the Azure Batch service under the account specified by the BatchAccountContext parameter. - - - New-AzureBatchJob - + New-AzureBatchPool + Id - Specifies the id of the job to create. + Specifies the ID of the pool to create. String + + CertificateReferences + + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + + PSCertificateReference[] + DisplayName - The display name of the job. + Specifies the display name of the pool. String - CommonEnvironmentSettings + InterComputeNodeCommunicationEnabled - Specifies the common environment variables that are set for all tasks in the job. For each key/value pair, set the key to the environment variable name, and the value to the environment variable value. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - IDictionary - Constraints + MaxTasksPerComputeNode - Specifies the execution constraints for the job. + Specifies the maximum number of tasks that can run on a single compute node. - PSJobConstraints + Int32 - JobManagerTask + Metadata - Specifies the Job Manager task. The Job Manager task is launched when the job is started. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. - PSJobManagerTask + IDictionary - JobPreparationTask + Profile - Specifies the Job Preparation task. The Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PSJobPreparationTask + AzureProfile - JobReleaseTask + ResizeTimeout - Specifies the Job Release task. The Batch service runs the Job Release task when the job ends, on each compute node where any task of the job has run. + Specifies the timeout for allocating compute nodes to the pool. - PSJobReleaseTask + TimeSpan - Metadata + StartTask - Specifies metadata to add to the new job. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - IDictionary + PSStartTask - Profile + TargetDedicated - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the target number of compute nodes to allocate to the pool. - AzureProfile + Int32 - - PoolInformation + + TargetOSVersion - Specifies the details of the pool on which the Batch service runs the job's tasks. + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. - PSPoolInformation + String - Priority + TaskSchedulingPolicy - Specifies the priority of the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. + Specifies the task scheduling policy, such as the ComputeNodeFillType. - Int32 + PSTaskSchedulingPolicy BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + OSFamily + + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. + + String + + + VirtualMachineSize + + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. + + String + - - BatchContext + + AutoScaleFormula - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see Define the Autoscaling Formula for a Pool (https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx) in the Microsoft Developer Network Library. - BatchAccountContext + String - BatchAccountContext + String none - - DisplayName + + BatchContext - The display name of the job. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - String + BatchAccountContext - String + BatchAccountContext none - - CommonEnvironmentSettings + + CertificateReferences - Specifies the common environment variables that are set for all tasks in the job. For each key/value pair, set the key to the environment variable name, and the value to the environment variable value. + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. - IDictionary + PSCertificateReference[] - IDictionary + PSCertificateReference[] none - Constraints + DisplayName - Specifies the execution constraints for the job. + Specifies the display name of the pool. - PSJobConstraints + String - PSJobConstraints + String none - - JobManagerTask + + Id - Specifies the Job Manager task. The Job Manager task is launched when the job is started. + Specifies the ID of the pool to create. - PSJobManagerTask + String - PSJobManagerTask + String none - JobPreparationTask + InterComputeNodeCommunicationEnabled - Specifies the Job Preparation task. The Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - PSJobPreparationTask + SwitchParameter - PSJobPreparationTask + SwitchParameter none - JobReleaseTask + MaxTasksPerComputeNode - Specifies the Job Release task. The Batch service runs the Job Release task when the job ends, on each compute node where any task of the job has run. + Specifies the maximum number of tasks that can run on a single compute node. - PSJobReleaseTask + Int32 - PSJobReleaseTask + Int32 none @@ -5716,7 +5167,7 @@ Metadata - Specifies metadata to add to the new job. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. IDictionary @@ -5725,10 +5176,10 @@ none - - Id + + OSFamily - Specifies the id of the job to create. + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. String @@ -5740,7 +5191,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -5749,197 +5200,72 @@ none - - PoolInformation + + ResizeTimeout - Specifies the details of the pool on which the Batch service runs the job's tasks. + Specifies the timeout for allocating compute nodes to the pool. - PSPoolInformation + TimeSpan - PSPoolInformation + TimeSpan none - Priority + StartTask - Specifies the priority of the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - Int32 + PSStartTask - Int32 + PSStartTask none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a job - - - - - - PS C:\>$PoolInformation = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation; - $PoolInformation.PoolId = "MyPool" - New-AzureBatchJob -Id "MyJob" -PoolInformation $PoolInformation -BatchContext $Context - - - This command creates a job with id MyJob. Tasks added to the job will run on pool MyPool. - - - - - - - - - - - - - Get-AzureBatchJobSchedule - - - - Remove-AzureBatchJob - - - - Get-AzureBatchAccountKeys - - - - - - - Remove-AzureBatchAccount - - Removes the specified Azure Batch account. - - - - - Remove - AzureBatchAccount - - - - The Remove-AzureBatchAccount cmdlet removes the specified Batch account. You will be prompted for confirmation unless you use the Force parameter. - - - - Remove-AzureBatchAccount - - AccountName - - Specifies the name of the Batch account to remove. - - String - - - ResourceGroupName - - Specifies the resource group of the account to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - - - - AccountName + + TargetDedicated - Specifies the name of the Batch account to remove. + Specifies the target number of compute nodes to allocate to the pool. - String + Int32 - String + Int32 none - Force + TargetOSVersion - Forces the command to run without asking for user confirmation. + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. - SwitchParameter + String - SwitchParameter + String none - Profile + TaskSchedulingPolicy - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the task scheduling policy, such as the ComputeNodeFillType. - AzureProfile + PSTaskSchedulingPolicy - AzureProfile + PSTaskSchedulingPolicy none - - ResourceGroupName + + VirtualMachineSize - Specifies the resource group of the account to remove. + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. - String + String String @@ -5985,16 +5311,34 @@ - Example 1: Remove a Batch account by name + Example 1: Create a new pool using the TargetDedicated parameter set - - PS C:\>Remove-AzureBatchAccount -AccountName "cmdletexample" - + PS C:\>New-AzureBatchPool -Id "MyPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -BatchContext $Context + + + This command creates a new pool with id MyPool using the TargetDedicated parameter set. The target allocation is three compute nodes. The pool will use small virtual machines imaged with the latest operating system version of family four. + + + + + + + + + + + Example 2: Create a new pool using the AutoScale parameter set + + + + + PS C:\>New-AzureBatchPool -Id "AutoScalePool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -AutoScaleFormula '$TargetDedicated=2;' -BatchContext $Context + - This command removes the Batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. + This command creates a new pool with ID AutoScalePool using the AutoScale parameter set. The pool will use small virtual machines imaged with the latest operating system version of family four, and the target number of compute nodes will be determined by the Autoscale formula. @@ -6007,96 +5351,300 @@ - Get-AzureBatchAccount + Get-AzureBatchAccountKeys - New-AzureBatchAccount + Get-AzureBatchPool - Set-AzureBatchAccount + Remove-AzureBatchPool + + + + RMAzure_Batch_Cmdlets - Remove-AzureBatchJob + New-AzureBatchTask - Deletes the specified Azure Batch job. + Creates a new Batch task under the specified job. - Remove - AzureBatchJob + New + AzureBatchTask - The Remove-AzureBatchJob cmdlet deletes the specified Azure Batch job. You will be prompted for confirmation unless you use the Force parameter. + The New-AzureBatchTask cmdlet creates a new Azure Batch task under the job specified by the JobId parameter or the Job parameter. - Remove-AzureBatchJob - - Id + New-AzureBatchTask + + AffinityInformation - Specifies the id of the job to delete. Wildcards are not permitted. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - String + PSAffinityInformation - Force + Constraints - Forces the command to run without asking for user confirmation. + Specifies the run constraints for the task. + + PSTaskConstraints + + + DisplayName + + Specifies the display name of the task. + + String + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + CommandLine + + Specifies the command-line command for the task. + + String + + + Id + + Specifies the ID of the task to create. + + String + + + JobId + + Specifies the ID of the job to create the task under. + + String + - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - BatchAccountContext - - - none - - - Force + + New-AzureBatchTask + + AffinityInformation + + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. + + PSAffinityInformation + + + Constraints + + Specifies the run constraints for the task. + + PSTaskConstraints + + + DisplayName + + Specifies the display name of the task. + + String + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + + IDictionary + + + Job + + Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + CommandLine + + Specifies the command-line command for the task. + + String + + + Id + + Specifies the ID of the task to create. + + String + + + + + + AffinityInformation - Forces the command to run without asking for user confirmation. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - SwitchParameter + PSAffinityInformation - SwitchParameter + PSAffinityInformation none - + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + CommandLine + + Specifies the command-line command for the task. + + String + + String + + + none + + + Constraints + + Specifies the run constraints for the task. + + PSTaskConstraints + + PSTaskConstraints + + + none + + + DisplayName + + Specifies the display name of the task. + + String + + String + + + none + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + + IDictionary + + IDictionary + + + none + + Id - Specifies the id of the job to delete. Wildcards are not permitted. + Specifies the ID of the task to create. + + String + + String + + + none + + + Job + + Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + PSCloudJob + + + none + + + JobId + + Specifies the ID of the job to create the task under. String @@ -6108,7 +5656,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6117,6 +5665,30 @@ none + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + IDictionary + + + none + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + SwitchParameter + + SwitchParameter + + + none + @@ -6156,16 +5728,15 @@ - Example 1: Delete a Batch job by id + Example 1: Create a new Batch task - - PS C:\>Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context - + PS C:\>New-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context + - This command deletes the job with id Job-000001. The user is prompted for confirmation before the delete operation takes place. + This command creates a new task with ID MyTask under job Job-000001. The task will run the command-line "cmd /c dir /s". @@ -6176,16 +5747,15 @@ - Example 2: Delete a Batch job by pipelining without confirmation + Example 2: Create a new Batch task - - PS C:\>Get-AzureBatchJob -Id "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context - + PS C:\>Get-AzureBatchJob -Id "Job-000001" -BatchContext $Context | New-AzureBatchTask -Id "MyTask2" -CommandLine "cmd /c echo hello > newFile.txt" -RunElevated -BatchContext $Context + - This command deletes the job with id Job-000002. Since the Force parameter is present, the confirmation prompt is suppressed. + This command creates a new task with ID MyTask2 under job Job-000001. The task will run the command-line "cmd /c echo hello > newFile.txt" with elevated permissions. @@ -6205,34 +5775,53 @@ Get-AzureBatchJob + + Get-AzureBatchTask + + + + Remove-AzureBatchTask + + + + RMAzure_Batch_Cmdlets + + - Remove-AzureBatchPool + Remove-AzureBatchAccount - Deletes the specified Azure Batch pool. + Removes the specified Batch account. Remove - AzureBatchPool + AzureBatchAccount - The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchAccount cmdlet removes the specified Azure Batch account. You will be prompted for confirmation unless you use the Force parameter. - Remove-AzureBatchPool - - Id + Remove-AzureBatchAccount + + AccountName - Specifies the id of the pool to delete. You cannot use wildcards. + Specifies the name of the batch account to remove. String + + ResourceGroupName + + Specifies the resource group of the account to remove. + + String + Force @@ -6242,28 +5831,21 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - BatchContext + + AccountName - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the name of the batch account to remove. - BatchAccountContext + String - BatchAccountContext + String none @@ -6280,22 +5862,10 @@ none - - Id - - Specifies the id of the pool to delete. You cannot use wildcards. - - String - - String - - - none - Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6304,9 +5874,21 @@ none - - - + + ResourceGroupName + + Specifies the resource group of the account to remove. + + String + + String + + + none + + + + @@ -6343,36 +5925,15 @@ - Example 1: Delete a Batch pool by pool id - - - - - - PS C:\>Remove-AzureBatchPool -Id "MyPool" -BatchContext $Context - - - This command deletes the pool with id MyPool. The user is prompted for confirmation before the delete operation takes place. - - - - - - - - - - - Example 2: Delete all Batch pools by force + Example 1: Remove a batch account by name - - PS C:\>Get-AzureBatchPool -BatchContext $context | Remove-AzureBatchPool -Force -BatchContext $Context - + PS C:\>Remove-AzureBatchAccount -AccountName "cmdletexample" + - This command deletes all Batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. + This command removes the batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. @@ -6385,85 +5946,62 @@ - Get-AzureBatchPool + Get-AzureBatchAccount - New-AzureBatchPool + New-AzureBatchAccount - Get-AzureBatchAccountKeys + Set-AzureBatchAccount - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Remove-AzureBatchTask + Remove-AzureBatchComputeNodeUser - Deletes the specified Azure Batch task. + Deletes a user account from a Batch compute node. Remove - AzureBatchTask + AzureBatchComputeNodeUser - The Remove-AzureBatchTask cmdlet deletes the specified Azure Batch task. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchComputeNodeUser cmdlet deletes a user account from an Azure Batch compute node. - Remove-AzureBatchTask + Remove-AzureBatchComputeNodeUser - JobId + PoolId - Specifies the id of the job containing the task to delete. + Specifies the ID of the pool that contains the compute node on which to delete the user account. String - Id + ComputeNodeId - Specifies the id of the task to delete. Wildcards are not permitted. + Specifies the ID of the compute node on which this cmdlet deletes the user account. String - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Remove-AzureBatchTask - - InputObject + + Name - Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the name of the user account to delete. You cannot specify wildcard characters. - PSCloudTask + String Force @@ -6474,14 +6012,14 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6491,7 +6029,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6500,34 +6038,34 @@ none - - Force + + ComputeNodeId - Forces the command to run without asking for user confirmation. + Specifies the ID of the compute node on which this cmdlet deletes the user account. - SwitchParameter + String - SwitchParameter + String none - - InputObject + + Force - Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Forces the command to run without asking for user confirmation. - PSCloudTask + SwitchParameter - PSCloudTask + SwitchParameter none - - JobId + + Name - Specifies the id of the job containing the task to delete. + Specifies the name of the user account to delete. You cannot specify wildcard characters. String @@ -6536,10 +6074,10 @@ none - - Id + + PoolId - Specifies the id of the task to delete. Wildcards are not permitted. + Specifies the ID of the pool that contains the compute node on which to delete the user account. String @@ -6551,7 +6089,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6599,36 +6137,15 @@ - Example 1: Delete a Batch task by id with user confirmation - - - - - - PS C:\>Remove-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -BatchContext $Context - - - This command deletes the task with id MyTask in job Job-000001. The user is prompted for confirmation before the delete operation takes place. - - - - - - - - - - - Example 2: Delete a Batch task by id without user confirmation + Example 1: Delete a user from a compute node without confirmation - - PS C:\>Get-AzureBatchTask "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context - + PS C:\>Remove-AzureBatchComputeNodeUser -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "User14" -Force -BatchContext $Context + - This command deletes the task with id MyTask2 in job Job-000001. Since the Force parameter is present, the confirmation prompt is suppressed. + This command deletes the user named User14 from compute node named ComputeNode01. The compute node is in the pool named Pool01. This command specifies the Force parameter. Therefore, the command does not prompt you for confirmation. @@ -6641,56 +6158,42 @@ - Get-AzureBatchTask + Get-AzureBatchAccountKeys - New-AzureBatchTask + New-AzureBatchComputeNodeUser - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Remove-AzureBatchComputeNodeUser + Remove-AzureBatchJobSchedule - Deletes the specified user account from the specified Azure Batch compute node. + Removes a Batch job schedule. Remove - AzureBatchComputeNodeUser + AzureBatchJobSchedule - The Remove-AzureBatchComputeNodeUser cmdlet deletes the specified user account from the specified Azure Batch compute node. + The Remove-AzureBatchJobSchedule cmdlet removes an Azure Batch job schedule. This cmdlet prompts you for confirmation before it removes a schedule. - Remove-AzureBatchComputeNodeUser + Remove-AzureBatchJobSchedule - PoolId - - Specifies the id of the pool that contains the compute node. - - String - - - ComputeNodeId - - Specifies the id of the compute node to delete the user from. - - String - - - Name + Id - Specifies the name of the user to delete. You cannot specify wildcards. + Specifies the ID of the job schedule that this cmdlet removes. You cannot specify wildcard characters. String @@ -6703,14 +6206,14 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6720,7 +6223,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6741,10 +6244,10 @@ none - - Name + + Id - Specifies the name of the user to delete. You cannot specify wildcards. + Specifies the ID of the job schedule that this cmdlet removes. You cannot specify wildcard characters. String @@ -6753,56 +6256,2228 @@ none - - PoolId + + Profile - Specifies the id of the pool that contains the compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none - - Profile + + + + + + + + + + + + - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + + - AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a job schedule + + + + + PS C:\>Remove-AzureBatchJobSchedule "JobSchedule17" -BatchContext $Context + + + This command deletes the job schedule that has the ID JobSchedule17. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. This command prompts you before it removes the schedule. + + + + + + + + + + + Example 2: Delete a job schedule without confirmation + + + + + PS C:\>Get-AzureBatchJobSchedule -Id "JobSchedule23" -BatchContext $Context | Remove-AzureBatchJobSchedule -Force -BatchContext $Context + + + This command gets the job schedule that has the ID JobSchedule23 by using the Get-AzureBatchJobSchedule cmdlet. The command passes that schedule to the current cmdlet by using the pipeline operator. The command removes that schedule. The command specifies the Force parameter. Therefore, it does not prompt you for confirmation. + + + + + + + + + + + + + Get-AzureBatchJobSchedule + + + + New-AzureBatchJobSchedule + + + + RMAzure_Batch_Cmdlets + + + + + + + Remove-AzureBatchJob + + Deletes the specified Batch job. + + + + + Remove + AzureBatchJob + + + + The Remove-AzureBatchJob cmdlet deletes the specified Azure Batch job. You will be prompted for confirmation unless you use the Force parameter. + + + + Remove-AzureBatchJob + + Id + + Specifies the ID of the job to delete. You cannot specify wildcard characters. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Id + + Specifies the ID of the job to delete. You cannot specify wildcard characters. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a Batch job by id + + + + + PS C:\>Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context + + + This command deletes the job with ID Job-000001. The user is prompted for confirmation before the delete operation takes place. + + + + + + + + + + + Example 2: Delete a Batch job by pipelining without confirmation + + + + + PS C:\>Get-AzureBatchJob -Id "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context + + + This command deletes the job with ID Job-000002. Since the Force parameter is present, the confirmation prompt is suppressed. + + + + + + + + + + + + + Get-AzureBatchAccountKeys + + + + Get-AzureBatchJob + + + + RMAzure_Batch_Cmdlets + + + + + + + Remove-AzureBatchPool + + Deletes the specified Batch pool. + + + + + Remove + AzureBatchPool + + + + The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. + + + + Remove-AzureBatchPool + + Id + + Specifies the ID of the pool to delete. You cannot specify wildcard characters. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Id + + Specifies the ID of the pool to delete. You cannot specify wildcard characters. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a Batch pool by pool ID + + + + + PS C:\>Remove-AzureBatchPool -Id "MyPool" -BatchContext $Context + + + This command deletes the pool with ID MyPool. The user is prompted for confirmation before the delete operation takes place. + + + + + + + + + + + Example 2: Delete all Batch pools by force + + + + + PS C:\>Get-AzureBatchPool -BatchContext $Context | Remove-AzureBatchPool -Force -BatchContext $Context + + + This command deletes all Batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. + + + + + + + + + + + + + Get-AzureBatchPool + + + + New-AzureBatchPool + + + + Get-AzureBatchAccountKeys + + + + RMAzure_Batch_Cmdlets + + + + + + + Remove-AzureBatchTask + + Deletes the specified Batch task. + + + + + Remove + AzureBatchTask + + + + The Remove-AzureBatchTask cmdlet deletes the specified Azure Batch task. You will be prompted for confirmation unless you use the Force parameter. + + + + Remove-AzureBatchTask + + JobId + + Specifies the ID of the job containing the task to delete. + + String + + + Id + + Specifies the ID of the task to delete. You cannot specify wildcard characters. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Remove-AzureBatchTask + + InputObject + + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + + PSCloudTask + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Id + + Specifies the ID of the task to delete. You cannot specify wildcard characters. + + String + + String + + + none + + + InputObject + + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + + PSCloudTask + + PSCloudTask + + + none + + + JobId + + Specifies the ID of the job containing the task to delete. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a Batch task by id with user confirmation + + + + + PS C:\>Remove-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -BatchContext $Context + + + This command deletes the task with ID MyTask in job Job-000001. The user is prompted for confirmation before the delete operation takes place. + + + + + + + + + + + Example 2: Delete a Batch task by id without user confirmation + + + + + PS C:\>Get-AzureBatchTask "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context + + + This command deletes the task with id MyTask2 in job Job-000001. Since the Force parameter is present, the confirmation prompt is suppressed. + + + + + + + + + + + + + Get-AzureBatchAccountKeys + + + + Get-AzureBatchTask + + + + New-AzureBatchTask + + + + RMAzure_Batch_Cmdlets + + + + + The Azure Batch cmdlets in the Azure module enable you to manage Microsoft Azure Batch services in Azure PowerShell. + Azure PowerShell is a command-line shell and scripting language designed to help information technology (IT) professionals automate system administration tasks. To install the latest Azure PowerShell version and associate it with your Azure subscription, see How to install and configure Azure PowerShell. For more information about Azure Resource Manager cmdlets, see Using Azure PowerShell with Azure Resource Manager. + Before you run cmdlets in Azure Resource Manager, switch to Azure Resource Manager mode. To switch to this mode, type the following command: + +Switch-AzureMode AzureResourceManager + + The Switch-AzureMode cmdlet is deprecated. For more information, see Deprecation of Switch AzureMode in Azure PowerShell (https://github.com/Azure/azure-powershell/wiki/Deprecation-of-Switch-AzureMode-in-Azure-PowerShell). + This deprecation is a breaking change. You may need to revise scripts that operate in Azure Resource Manager. + + The following cmdlets are the Azure Batch cmdlets in the Azure module: + Name + Description + Get-AzureBatchAccount + Gets a Batch account under the current subscription. + Get-AzureBatchAccountKeys + Gets the specified key of the specified Batch accounts under the current subscription. + Get-AzureBatchComputeNode + Gets Batch compute nodes from a pool. + Get-AzureBatchJob + Gets Batch jobs under the specified Batch account or job schedule. + Get-AzureBatchJobSchedule + Gets Batch job schedules. + Get-AzureBatchNodeFile + Gets the properties of Batch node files. + Get-AzureBatchNodeFileContent + Gets a Batch node file. + Get-AzureBatchPool + Gets Batch pools under the specified Batch account. + Get-AzureBatchRemoteDesktopProtocolFile + Gets an RDP file from a compute node. + Get-AzureBatchTask + Gets the Batch tasks for the specified job. + New-AzureBatchAccount + Creates a new Batch account. + New-AzureBatchAccountKey + Regenerates the specified key of the specified Batch account. + New-AzureBatchComputeNodeUser + Creates a user account on a Batch compute node. + New-AzureBatchJob + Creates a job in the Batch service. + New-AzureBatchJobSchedule + Creates a job schedule in the Batch service. + New-AzureBatchPool + Creates a new pool in the Batch service under the specified account. + New-AzureBatchTask + Creates a new Batch task under the specified job. + Remove-AzureBatchAccount + Removes the specified Batch account. + Remove-AzureBatchComputeNodeUser + Deletes a user account from a Batch compute node. + Remove-AzureBatchJob + Deletes the specified Batch job. + Remove-AzureBatchJobSchedule + Removes a Batch job schedule. + Remove-AzureBatchPool + Deletes the specified Batch pool. + Remove-AzureBatchTask + Deletes the specified Batch task. + Set-AzureBatchAccount + Updates the specified Batch account. + Start-AzureBatchPoolResize + Starts to resize a pool. + Stop-AzureBatchPoolResize + Stops a pool resize operation. + For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets: ● Get-Help <cmdlet name> -Detailed ● Get-Help <cmdlet name> -Examples ● Get-Help <cmdlet name> -Full + + Azure Cmdlet Reference + + + Azure Resource Manager CmdletsUsing Windows Powershell with Resource ManagerSet-AzureBatchAccountUpdates the specified Batch account.SetAzureBatchAccountThe Set-AzureBatchAccount cmdlet updates the specified Azure Batch account. Currently, only tags can be updated.Set-AzureBatchAccountAccountNameSpecifies the name of the existing Batch account to update.StringTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResourceGroupNameSpecifies the resource group of the account being updated.StringAccountNameSpecifies the name of the existing Batch account to update.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the resource group of the account being updated.StringStringnoneTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]Hashtable[]noneBatchAccountContextExample 1: Update the tags on an existing Batch accountPS C:\>Set-AzureBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"}) +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus cmdletexamplerg {System.Collection https://cmdletexample.westus.batch.azure.com + s.Hashtable, Syste + m.Collections.Hash + table} +This command updates the tags on the cmdletexample account.Get-AzureBatchAccountNew-AzureBatchAccountRemove-AzureBatchAccountRMAzure_Batch_CmdletsStart-AzureBatchPoolResizeStarts to resize a pool.StartAzureBatchPoolResizeThe Start-AzureBatchPoolResize cmdlet starts an Azure Batch resize operation on a pool.Start-AzureBatchPoolResizeIdSpecifies the ID of the pool that this cmdlet resizes.StringComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContextTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32BatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContextBatchAccountContextnoneComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionComputeNodeDeallocationOptionnoneIdSpecifies the ID of the pool that this cmdlet resizes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanTimeSpannoneTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32Int32noneExample 1: Resize a pool to 12 nodesPS C:\>Start-AzureBatchPoolResize -Id "ContosoPool06" -TargetDedicated 12 -BatchContext $Context +This command starts a resize operation on the pool that has the ID ContosoPool06. The target for the operation is 12 dedicated compute nodes. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. Example 2: Resize a pool using a deallocation optionPS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $Context +This cmdlet resizes a pool to five dedicated compute nodes. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet by using the pipeline operator. The command starts a resize operation on the pool. The target is five dedicated compute nodes. The command specifies time-out period of one hour. The command specifies a deallocation option of Terminate.Get-AzureBatchAccountKeysGet-AzureBatchPoolStop-AzureBatchPoolResizeRMAzure_Batch_CmdletsStop-AzureBatchPoolResizeStops a pool resize operation.StopAzureBatchPoolResizeThe Stop-AzureBatchPoolResize cmdlet stops an Azure Batch resize operation on a pool.Stop-AzureBatchPoolResizeIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet.BatchAccountContextBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet.BatchAccountContextBatchAccountContextnoneIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneExample 1: Stop resizing a poolPS C:\>Stop-AzureBatchPoolResize -Id "ContosoPool06" -BatchContext $Context +This command stops a resize operation on the pool that has the ID ContosoPool06. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable.Example 2: Stop resizing a pool by using the pipelinePS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Stop-AzureBatchPoolResize -BatchContext $Context +This example stops resizing a pool by using the pipeline operator. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet. The command stops the resize operation on that pool. Get-AzureBatchAccountKeysGet-AzureBatchPoolStart-AzureBatchPoolResizeRMAzure_Batch_Cmdlets + + + + + Enable-AzureBatchAutoScale + + + Enables automatic scaling on the specified pool. + + + + + Enable + AzureBatchAutoScale + + + + Enables automatic scaling on the specified pool. + + + + + Enable-AzureBatchAutoScale + + Id + + The id of the pool to enable automatic scaling on. + + string + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + + string + + string + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to enable automatic scaling on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; + Enable-AzureBatchAutoScale "myPool" $formula -BatchContext $context + + + Description + ----------- + Enables automatic scaling on pool "myPool" using the specified formula. + + + + + + + + + + + + + + + + + + + + + + + + Test-AzureBatchAutoScale + + + Gets the result of evaluation an automatic scaling formula on the specified pool. + + + + + Test + AzureBatchAutoScale + + + + Gets the result of evaluation an automatic scaling formula on the specified pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. + + + + + Test-AzureBatchAutoScale + + Id + + The id of the pool to evaluate the automatic scaling formula on. + + string + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + + string + + string + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to evaluate the automatic scaling formula on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + PSAutoScaleEvaluation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; + $evaluation = Test-AzureBatchAutoScale "myPool" $formula -BatchContext $context + $evaluation.AutoScaleRun.Results + + $TargetDedicated=5;$NodeDeallocationOption=requeue;totalNodes=5 + + + Description + ----------- + Evaluates the specified autoscale formula on pool "myPool" and displays the results. + + + + + + + + + + + + + + + + + + + + + + + + Disable-AzureBatchAutoScale + + + Disables automatic scaling on the specified pool. + + + + + Disable + AzureBatchAutoScale + + + + Disables automatic scaling on the specified pool. + + + + + Disable-AzureBatchAutoScale + + Id + + The id of the pool to disable automatic scaling on. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to disable automatic scaling on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Disable-AzureBatchAutoScale "myPool" -BatchContext $context + + + Description + ----------- + Disables automatic scaling on pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Restart-AzureBatchComputeNode + + + Reboots the specified compute node. + + + + + Restart + AzureBatchComputeNode + + + + Reboots the specified compute node. + + + + + Restart-AzureBatchComputeNode + + PoolId + + The id of the pool that contains the compute node. + + string + + + Id + + The id of the compute node to reboot. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeRebootOption + + + + Restart-AzureBatchComputeNode + + ComputeNode + + The PSComputeNode object representing the compute node to reboot. + + PSComputeNode + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeRebootOption + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + ComputeNode + + The PSComputeNode object representing the compute node to reboot. + + + PSComputeNode + + PSComputeNode + + + + + + Id + + The id of the compute node to reboot. + + + string + + string + + + + + + PoolId + + The id of the pool that contains the compute node. + + + string + + string + + + + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + + ComputeNodeRebootOption + + ComputeNodeRebootOption + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Restart-AzureBatchComputeNode -PoolId "myPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $context + + + Description + ----------- + Reboots the compute node with id "tvm-3257026573_2-20150813t200938z" in pool "myPool". + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + + Get-AzureBatchComputeNode -PoolId "myPool" -BatchContext $context | Restart-AzureBatchComputeNode -BatchContext $context + + + Description + ----------- + Reboots every compute node in pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Reset-AzureBatchComputeNode + + + Reinstalls the operating system on the specified compute node. + + + + + Reset + AzureBatchComputeNode + + + + Reinstalls the operating system on the specified compute node. + + + + + Reset-AzureBatchComputeNode + + PoolId + + The id of the pool that contains the compute node. + + string + + + Id + + The id of the compute node to reimage. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeReimageOption + + + + Reset-AzureBatchComputeNode + + ComputeNode + + The PSComputeNode object representing the compute node to reimage. + + PSComputeNode + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeReimageOption + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + ComputeNode + + The PSComputeNode object representing the compute node to reimage. + + + PSComputeNode + + PSComputeNode + + + + + + Id + + The id of the compute node to reimage. + + + string + + string + + + + + + PoolId + + The id of the pool that contains the compute node. + + + string + + string + + + + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + + ComputeNodeReimageOption + + ComputeNodeReimageOption + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Reset-AzureBatchComputeNode -PoolId "myPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $context + + + Description + ----------- + Reimages the compute node with id "tvm-3257026573_2-20150813t200938z" in pool "myPool". + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + + Get-AzureBatchComputeNode -PoolId "myPool" -BatchContext $context | Reset-AzureBatchComputeNode -BatchContext $context + + + Description + ----------- + Reimages every compute node in pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureBatchPoolOSVersion + + + Changes the operating system version of the specified pool. + + + + + Set + AzureBatchPoolOSVersion + + + + Changes the operating system version of the specified pool. + + + + + Set-AzureBatchPoolOSVersion + + Id + + The id of the pool. + + string + + + TargetOSVersion + + The Azure Guest OS version to be installed on the virtual machines in the pool. For more information on Azure Guest OS versions, see http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool. + + + string + + string + + + + + + TargetOSVersion + + The Azure Guest OS version to be installed on the virtual machines in the pool. For more information on Azure Guest OS versions, see http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Set-AzureBatchPoolOSVersion -Id "myPool" -TargetOSVersion "WA-GUEST-OS-4.20_201505-01" -BatchContext $context + + + Description + ----------- + Sets the target OS version of pool "myPool" to "WA-GUEST-OS-4.20_201505-01" + + + + + + + + + + + + + + + + + + + + + + + + Enable-AzureBatchJobSchedule + + + Enables the specified job schedule. + + + + + Enable + AzureBatchJobSchedule + + + + Enables the specified job schedule, allowing jobs to be created according to its Schedule. + + + + + Enable-AzureBatchJobSchedule + + Id + + The id of the job schedule to enable. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the job schedule to enable. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Enable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context + + + Description + ----------- + Enables the job schedule with id "myJobSchedule". + + + + + + + + + + + + + + + + + + + + + + + + Disable-AzureBatchJobSchedule + + + Disables the specified job schedule + + + + + Disable + AzureBatchJobSchedule + + + + Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later. + + + + + Disable-AzureBatchJobSchedule + + Id + + The id of the job schedule to disable. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext - AzureProfile - + BatchAccountContext + - none + - - ComputeNodeId + + Id - Specifies the id of the compute node to delete the user from. + The id of the job schedule to disable. + - String + string - String - + string + - none + + - - - - - - - + + + + + @@ -6810,170 +8485,149 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + - Example 1: Delete a user from a compute node and suppress confirmation + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Remove-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "MyUser" -Force -BatchContext $Context + Disable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context - This command deletes the user named MyUser from compute node ComputeNode01 in pool MyPool01. This command also suppresses the confirmation prompt since the Force parameter is present. - - + Description + ----------- + Disables the job schedule with id "myJobSchedule". + + + + - + + - New-AzureBatchComputeNodeUser - - - - Get-AzureBatchAccountKeys - - - - Azure Batch Cmdlets - + + - + - Remove-AzureBatchJobSchedule + + Enable-AzureBatchJob + - Deletes the specified Azure Batch job schedule. + Enables the specified job. - + - Remove - AzureBatchJobSchedule - + Enable + AzureBatchJob + - The Remove-AzureBatchJobSchedule cmdlet deletes the specified Azure Batch job schedule. You will be prompted for confirmation unless you use the Force parameter. + Enables the specified job, allowing new tasks to run. + - Remove-AzureBatchJobSchedule - + Enable-AzureBatchJob + Id - Specifies the id of the job schedule to delete. Wildcards are not permitted. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + The id of the job to enable. - AzureProfile + string - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext + - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + BatchAccountContext BatchAccountContext - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - + - none + - + Id - Specifies the id of the job schedule to delete. Wildcards are not permitted. - - String - - String - - - none - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + The id of the job to enable. + - AzureProfile + string - AzureProfile - + string + - none + + - - - - - - - + + + + + @@ -6981,191 +8635,169 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + - Example 1: Delete a job schedule with user confirmation - - - - - - PS C:\>Remove-AzureBatchJobSchedule "MyJobSchedule" -BatchContext $Context - - - This command deletes the job schedule with id MyJobSchedule. The user is prompted for confirmation before the delete operation takes place. - - - - - - - - - - - Example 2: Delete a job schedule without user confirmation + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule2" -BatchContext $Context | Remove-AzureBatchJobSchedule -Force -BatchContext $Context + Enable-AzureBatchJob "myJob" -BatchContext $context - This command deletes the job schedule with id MyJobSchedule2. Because the Force parameter is present, the confirmation prompt is suppressed. - - + Description + ----------- + Enables the job with id "myJob". + + + + - + + - Get-AzureBatchJobSchedule - - - - New-AzureBatchJobSchedule - - - - Get-AzureBatchAccountKeys - + + - + - Set-AzureBatchAccount + + Disable-AzureBatchJob + - Updates the specified Azure Batch account. + Disables the specified job. - + - Set - AzureBatchAccount - + Disable + AzureBatchJob + - The Set-AzureBatchAccount cmdlet updates the specified Batch account. Currently, only tags can be updated. + Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later. + - Set-AzureBatchAccount - - AccountName - - Specifies the name of the existing Batch account to update. - - String - - - Tag + Disable-AzureBatchJob + + Id - Specifies tags in an array of hash tables to set on the account. + The id of the job to disable. - Hashtable[] + string - - Profile + + DisableJobOption - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies what to do with active tasks associated with the job. - AzureProfile + DisableJobOption - - ResourceGroupName + + BatchContext - Specifies the resource group of the account being updated. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - String + BatchAccountContext + - - AccountName - - Specifies the name of the existing Batch account to update. - - String - - String - - - none - - - Profile + + BatchContext - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + - AzureProfile + BatchAccountContext - AzureProfile - + BatchAccountContext + - none + - - ResourceGroupName + + DisableJobOption - Specifies the resource group of the account being updated. + Specifies what to do with active tasks associated with the job. + - String + DisableJobOption - String - + DisableJobOption + - none + - - Tag + + Id - Specifies tags in an array of hash tables to set on the account. + The id of the job to disable. + - Hashtable[] + string - Hashtable[] - + string + - none + + - - - - - - - + + + + + @@ -7173,472 +8805,69 @@ - BatchAccountContext - - - - - + + + + + + + + + + + + + + + + + + + + - Example 1: Update the tags on an existing Batch account + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Set-AzureBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"}) - - - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG {System.Collection https://cmdletexample.westus.batch.azure.com - s.Hashtable, Syste - m.Collections.Hash - table} + Disable-AzureBatchJob "myJob" Terminate -BatchContext $context - This command updates the tags on the cmdletexample account. - - + Description + ----------- + Disables the job with id "myJob". Running tasks associated with the job will be terminated and will not run again. + + + + - + + - Get-AzureBatchAccount - - - - New-AzureBatchAccount - - - - Remove-AzureBatchAccount - + + - - - - Start-AzureBatchPoolResize - - - Begins a pool resize operation. - - - - - Start - AzureBatchPoolResize - - - - Begins a resize operation on the specified pool. - - - - - Start-AzureBatchPoolResize - - Id - - The id of the pool to resize. - - string - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - ComputeNodeDeallocationOption - - The deallocation option associated with this resize. - - ComputeNodeDeallocationOption - - - ResizeTimeout - - The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped. - - TimeSpan - - - TargetDedicated - - The number of target dedicated compute nodes. - - int - - - - - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - - BatchAccountContext - - BatchAccountContext - - - - - - ComputeNodeDeallocationOption - - The deallocation option associated with this resize. - - - ComputeNodeDeallocationOption - - ComputeNodeDeallocationOption - - - - - - Id - - The id of the pool to resize. - - - string - - string - - - - - - ResizeTimeout - - The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped. - - - TimeSpan - - TimeSpan - - - - - - TargetDedicated - - The number of target dedicated compute nodes. - - - int - - int - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - - Start-AzureBatchPoolResize -Id "MyPool" -TargetDedicated 10 -BatchContext $context - - Description - ----------- - Starts a resize operation on pool "MyPool" with a new target of 10 dedicated compute nodes. - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - - Get-AzureBatchPool -Id "MyPool" -BatchContext $context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $context - - Description - ----------- - Starts a resize operation on pool "MyPool" with a new target of 5 dedicated compute nodes, a resize timeout of 1 hour, and the Terminate deallocation option. - - - - - - - - - - - - - - - - - - - - - - - - Stop-AzureBatchPoolResize - - - Stops a pool resize operation. - - - - - Stop - AzureBatchPoolResize - - - - Stops a pool resize operation. - - - - - Stop-AzureBatchPoolResize - - Id - - The id of the pool. - - string - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - - BatchAccountContext - - BatchAccountContext - - - - - - Id - - The id of the pool. - - - string - - string - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - - Stop-AzureBatchPoolResize -Id "MyPool" -BatchContext $context - - Description - ----------- - Stops the resize operation on pool "MyPool" - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - - Get-AzureBatchPool -Id "testPool" -BatchContext $context | Stop-AzureBatchPoolResize -BatchContext $context - - Description - ----------- - Stops the resize operation on pool "MyPool" using the pipeline. - - - - - - - - - - - - - - - - - - - - + diff --git a/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.format.ps1xml b/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.format.ps1xml similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.format.ps1xml rename to src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.format.ps1xml diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAffinityInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAffinityInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleEvaluation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleEvaluation.cs new file mode 100644 index 000000000000..0ff8b6204e7e --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleEvaluation.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. +// ----------------------------------------------------------------------------- +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Azure.Commands.Batch.Models +{ + using System; + using System.Collections; + using System.Collections.Generic; + using Microsoft.Azure.Batch; + + + public class PSAutoScaleEvaluation + { + + internal Microsoft.Azure.Batch.AutoScaleEvaluation omObject; + + private PSAutoScaleRun autoScaleRun; + + internal PSAutoScaleEvaluation(Microsoft.Azure.Batch.AutoScaleEvaluation omObject) + { + if ((omObject == null)) + { + throw new System.ArgumentNullException("omObject"); + } + this.omObject = omObject; + } + + public PSAutoScaleRun AutoScaleRun + { + get + { + if (((this.autoScaleRun == null) + && (this.omObject.AutoScaleRun != null))) + { + this.autoScaleRun = new PSAutoScaleRun(this.omObject.AutoScaleRun); + } + return this.autoScaleRun; + } + } + + public string DataServiceId + { + get + { + return this.omObject.DataServiceId; + } + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCertificateReference.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCertificateReference.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudJob.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudJob.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudPool.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudPool.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudTask.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSCloudTask.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNode.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNode.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNode.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNode.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeError.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeError.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeError.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeError.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSFileProperties.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSFileProperties.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobConstraints.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobConstraints.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManagerTask.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobManagerTask.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManagerTask.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobManagerTask.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobSpecification.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobSpecification.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSJobStatistics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSMetadataItem.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSMetadataItem.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSNameValuePair.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSNameValuePair.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNodeFile.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSNodeFile.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNodeFile.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSNodeFile.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolSpecification.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolSpecification.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolStatistics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSRecentJob.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSRecentJob.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResizeError.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResizeError.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResourceFile.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResourceFile.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResourceStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSResourceStatistics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedule.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSSchedule.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedule.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSSchedule.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSStartTask.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSStartTask.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskConstraints.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskConstraints.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskInformation.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskInformation.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSTaskStatistics.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSUsageStatistics.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSUsageStatistics.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/AutoScaleParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/AutoScaleParameters.cs new file mode 100644 index 000000000000..b41e83429fe4 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/AutoScaleParameters.cs @@ -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. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class AutoScaleParameters : PoolOperationParameters + { + public AutoScaleParameters(BatchAccountContext context, string poolId, PSCloudPool pool, string autoScaleFormula, + IEnumerable additionalBehaviors = null) : base(context, poolId, pool, additionalBehaviors) + { + if (string.IsNullOrWhiteSpace(autoScaleFormula)) + { + throw new ArgumentNullException("autoScaleFormula"); + } + + this.AutoScaleFormula = autoScaleFormula; + } + + /// + /// The formula for the desired number of compute nodes in the pool. + /// + public string AutoScaleFormula { get; private set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchAccountContext.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchAccountContext.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Accounts.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Accounts.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Accounts.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Accounts.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs similarity index 60% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs index 2e6bba36bc9f..652d7d4f9e79 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs @@ -69,5 +69,56 @@ public IEnumerable ListComputeNodes(ListComputeNodeOptions option computeNodes, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } + + /// + /// Reboots the specified compute node. + /// + /// The parameters specifying the compute node to reboot and the reboot option. + public void RebootComputeNode(RebootComputeNodeParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string computeNodeId = parameters.ComputeNode == null ? parameters.ComputeNodeId : parameters.ComputeNode.Id; + WriteVerbose(string.Format(Resources.RebootComputeNode, computeNodeId)); + + if (parameters.ComputeNode != null) + { + parameters.ComputeNode.omObject.Reboot(parameters.RebootOption, parameters.AdditionalBehaviors); + } + else + { + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.Reboot(parameters.PoolId, parameters.ComputeNodeId, parameters.RebootOption, parameters.AdditionalBehaviors); + } + } + + + /// + /// Reinstalls the operating system on the specified compute node. + /// + /// The parameters specifying the compute node to reimage and the reimage option. + public void ReimageComputeNode(ReimageComputeNodeParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string computeNodeId = parameters.ComputeNode == null ? parameters.ComputeNodeId : parameters.ComputeNode.Id; + WriteVerbose(string.Format(Resources.ReimageComputeNode, computeNodeId)); + + if (parameters.ComputeNode != null) + { + parameters.ComputeNode.omObject.Reimage(parameters.ReimageOption, parameters.AdditionalBehaviors); + } + else + { + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.Reimage(parameters.PoolId, parameters.ComputeNodeId, parameters.ReimageOption, parameters.AdditionalBehaviors); + } + } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Files.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Files.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs similarity index 76% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs index 39b9acd6d7ad..fc76ff74b0b6 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs @@ -127,5 +127,43 @@ public void DeleteJobSchedule(BatchAccountContext context, string jobScheduleId, JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; jobScheduleOperations.DeleteJobSchedule(jobScheduleId, additionBehaviors); } + + /// + /// Enables the specified job schedule. + /// + /// The account to use. + /// The id of the job schedule to enable. + /// Additional client behaviors to perform. + public void EnableJobSchedule(BatchAccountContext context, string jobScheduleId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobScheduleId)) + { + throw new ArgumentNullException("jobScheduleId"); + } + + WriteVerbose(string.Format(Resources.EnableJobSchedule, jobScheduleId)); + + JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; + jobScheduleOperations.EnableJobSchedule(jobScheduleId, additionBehaviors); + } + + /// + /// Disables the specified job schedule. + /// + /// The account to use. + /// The id of the job schedule to disable. + /// Additional client behaviors to perform. + public void DisableJobSchedule(BatchAccountContext context, string jobScheduleId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobScheduleId)) + { + throw new ArgumentNullException("jobScheduleId"); + } + + WriteVerbose(string.Format(Resources.DisableJobSchedule, jobScheduleId)); + + JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; + jobScheduleOperations.DisableJobSchedule(jobScheduleId, additionBehaviors); + } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs similarity index 82% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs index d68dffd9ba4f..d935a3939a33 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs @@ -169,5 +169,43 @@ public void DeleteJob(BatchAccountContext context, string jobId, IEnumerable + /// Enables the specified job. + /// + /// The account to use. + /// The id of the job to enable. + /// Additional client behaviors to perform. + public void EnableJob(BatchAccountContext context, string jobId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobId)) + { + throw new ArgumentNullException("jobId"); + } + + WriteVerbose(string.Format(Resources.EnableJob, jobId)); + + JobOperations jobOperations = context.BatchOMClient.JobOperations; + jobOperations.EnableJob(jobId, additionBehaviors); + } + + /// + /// Disables the specified job. + /// + /// Specifies the job to disable as well as the job disable option. + public void DisableJob(DisableJobParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string jobId = parameters.Job == null ? parameters.JobId : parameters.Job.Id; + + WriteVerbose(string.Format(Resources.DisableJob, jobId)); + + JobOperations jobOperations = parameters.Context.BatchOMClient.JobOperations; + jobOperations.DisableJob(jobId, parameters.DisableJobOption, parameters.AdditionalBehaviors); + } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs similarity index 70% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs index 7f31166aad1b..fbf85c8464ef 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs @@ -182,5 +182,78 @@ public void StopResizePool(BatchAccountContext context, string poolId, IEnumerab PoolOperations poolOperations = context.BatchOMClient.PoolOperations; poolOperations.StopResizePool(poolId, additionalBehaviors); } + + /// + /// Enables automatic scaling on the specified pool. + /// + /// The parameters specifying the pool and autoscale formula. + public void EnableAutoScale(AutoScaleParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; + + WriteVerbose(string.Format(Resources.EnableAutoScale, poolId, parameters.AutoScaleFormula)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.EnableAutoScale(poolId, parameters.AutoScaleFormula, parameters.AdditionalBehaviors); + } + + /// + /// Disables automatic scaling on the specified pool. + /// + /// The parameters specifying the target pool. + public void DisableAutoScale(PoolOperationParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; + + WriteVerbose(string.Format(Resources.DisableAutoScale, poolId)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.DisableAutoScale(poolId, parameters.AdditionalBehaviors); + } + + /// + /// Gets the result of evaluating an automatic scaling formula on the specified pool. + /// + /// The parameters specifying the pool and autoscale formula. + public PSAutoScaleEvaluation EvaluateAutoScale(AutoScaleParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; + + WriteVerbose(string.Format(Resources.EvaluateAutoScale, poolId, parameters.AutoScaleFormula)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + AutoScaleEvaluation evaluation = poolOperations.EvaluateAutoScale(poolId, parameters.AutoScaleFormula, parameters.AdditionalBehaviors); + return new PSAutoScaleEvaluation(evaluation); + } + + /// + /// Changes the operating system version of the specified pool. + /// + /// The parameters specifying the pool and target OS version. + public void ChangeOSVersion(ChangeOSVersionParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; + + WriteVerbose(string.Format(Resources.ChangeOSVersion, poolId, parameters.TargetOSVersion)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.ChangeOSVersion(poolId, parameters.TargetOSVersion, parameters.AdditionalBehaviors); + } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClientParametersBase.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClientParametersBase.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClientParametersBase.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClientParametersBase.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs new file mode 100644 index 000000000000..8644bffbd06d --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs @@ -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. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class ChangeOSVersionParameters : PoolOperationParameters + { + public ChangeOSVersionParameters(BatchAccountContext context, string poolId, PSCloudPool pool, string targetOSVersion, + IEnumerable additionalBehaviors = null) : base(context, poolId, pool, additionalBehaviors) + { + if (string.IsNullOrWhiteSpace(targetOSVersion)) + { + throw new ArgumentNullException("targetOSVersion"); + } + + this.TargetOSVersion = targetOSVersion; + } + + /// + /// The Azure Guest OS version to be installed on the virtual machines in the pool. + /// + public string TargetOSVersion { get; private set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ComputeNodeOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ComputeNodeOperationParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.cs new file mode 100644 index 000000000000..77197a77f7f6 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.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.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class DisableJobParameters : JobOperationParameters + { + public DisableJobParameters(BatchAccountContext context, string jobId, PSCloudJob job, DisableJobOption disableJobOption, + IEnumerable additionalBehaviors = null) + : base(context, jobId, job, additionalBehaviors) + { + this.DisableJobOption = disableJobOption; + } + + /// + /// Specifies what to do with active tasks associated with the job. + /// + public DisableJobOption DisableJobOption { get; private set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadNodeFileOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DownloadNodeFileOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/DownloadNodeFileOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/DownloadNodeFileOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/JobOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/JobOperationParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/JobScheduleOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/JobScheduleOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/JobScheduleOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/JobScheduleOperationParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListComputeNodeOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListComputeNodeOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListComputeNodeOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListComputeNodeOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListJobOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListJobOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListJobScheduleOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListJobScheduleOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListJobScheduleOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListJobScheduleOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListNodeFileOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListNodeFileOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListNodeFileOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListNodeFileOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListPoolOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListPoolOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ListTaskOptions.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/ListTaskOptions.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewComputeNodeUserParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NewComputeNodeUserParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewComputeNodeUserParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NewComputeNodeUserParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewJobParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NewJobParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewJobParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NewJobParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewJobScheduleParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NewJobScheduleParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewJobScheduleParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NewJobScheduleParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NewPoolParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NewPoolParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NewTaskParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NewTaskParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NodeFileOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/NodeFileOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/NodeFileOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/NodeFileOperationParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PSPagedEnumerable.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/PSPagedEnumerable.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/PSPagedEnumerable.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/PSPagedEnumerable.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PSTagValuePair.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/PSTagValuePair.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/PSTagValuePair.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/PSTagValuePair.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/PoolOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/PoolOperationParameters.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/PoolResizeParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/PoolResizeParameters.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs new file mode 100644 index 000000000000..613a96523ec5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class RebootComputeNodeParameters : ComputeNodeOperationParameters + { + public RebootComputeNodeParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) + : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) + { } + + /// + /// Specifies when to reboot the node and what to do with currently running tasks. + /// + public ComputeNodeRebootOption? RebootOption { get; set; } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs new file mode 100644 index 000000000000..93a975b53b51 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class ReimageComputeNodeParameters : ComputeNodeOperationParameters + { + public ReimageComputeNodeParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) + : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) + { } + + /// + /// Specifies when to reimage the node and what to do with currently running tasks. + /// + public ComputeNodeReimageOption? ReimageOption { get; set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/TaskOperationParameters.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/TaskOperationParameters.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Pools/DisableBatchAutoScaleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/DisableBatchAutoScaleCommand.cs new file mode 100644 index 000000000000..fe966a6ee6c7 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/DisableBatchAutoScaleCommand.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.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Disable, Constants.AzureBatchAutoScale)] + public class DisableBatchAutoScaleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool to disable automatic scaling on.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + PoolOperationParameters parameters = new PoolOperationParameters(this.BatchContext, this.Id, null, this.AdditionalBehaviors); + BatchClient.DisableAutoScale(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Pools/EnableBatchAutoScaleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/EnableBatchAutoScaleCommand.cs new file mode 100644 index 000000000000..392d3fee53ec --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/EnableBatchAutoScaleCommand.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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Enable, Constants.AzureBatchAutoScale)] + public class EnableBatchAutoScaleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool to enable automatic scaling on.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "The formula for the desired number of compute nodes in the pool.")] + [ValidateNotNullOrEmpty] + public string AutoScaleFormula { get; set; } + + public override void ExecuteCmdlet() + { + AutoScaleParameters parameters = new AutoScaleParameters(this.BatchContext, this.Id, null, + this.AutoScaleFormula, this.AdditionalBehaviors); + BatchClient.EnableAutoScale(parameters); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/GetBatchPoolCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/GetBatchPoolCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/NewBatchPoolCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/NewBatchPoolCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.cs new file mode 100644 index 000000000000..70ed5c563bc9 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Set, Constants.AzureBatchPoolOSVersion)] + public class SetBatchPoolOSVersionCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "The Azure Guest OS version to be installed on the virtual machines in the pool.")] + [ValidateNotNullOrEmpty] + public string TargetOSVersion { get; set; } + + public override void ExecuteCmdlet() + { + ChangeOSVersionParameters parameters = new ChangeOSVersionParameters(this.BatchContext, this.Id, null, + this.TargetOSVersion, this.AdditionalBehaviors); + BatchClient.ChangeOSVersion(parameters); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Pools/TestBatchAutoScaleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/TestBatchAutoScaleCommand.cs new file mode 100644 index 000000000000..75517c7ff7b2 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/TestBatchAutoScaleCommand.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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsDiagnostic.Test, Constants.AzureBatchAutoScale)] + public class TestBatchAutoScaleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool to evaluate the autoscale formula on.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "The formula to be evaluated on the pool.")] + [ValidateNotNullOrEmpty] + public string AutoScaleFormula { get; set; } + + public override void ExecuteCmdlet() + { + AutoScaleParameters parameters = new AutoScaleParameters(this.BatchContext, this.Id, null, + this.AutoScaleFormula, this.AdditionalBehaviors); + WriteObject(BatchClient.EvaluateAutoScale(parameters)); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Properties/AssemblyInfo.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs similarity index 89% rename from src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs index e299b1deef06..ebf520d63f09 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs @@ -78,6 +78,69 @@ internal static string BeginMAMLCall { } } + /// + /// Looks up a localized string similar to Changing OS version of pool {0} to {1}.. + /// + internal static string ChangeOSVersion { + get { + return ResourceManager.GetString("ChangeOSVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling automatic scaling on pool {0}.. + /// + internal static string DisableAutoScale { + get { + return ResourceManager.GetString("DisableAutoScale", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling job {0}.. + /// + internal static string DisableJob { + get { + return ResourceManager.GetString("DisableJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling job schedule {0}.. + /// + internal static string DisableJobSchedule { + get { + return ResourceManager.GetString("DisableJobSchedule", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabling automatic scaling on pool {0} using the formula: {1}. + /// + internal static string EnableAutoScale { + get { + return ResourceManager.GetString("EnableAutoScale", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabling job {0}.. + /// + internal static string EnableJob { + get { + return ResourceManager.GetString("EnableJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabling job schedule {0}.. + /// + internal static string EnableJobSchedule { + get { + return ResourceManager.GetString("EnableJobSchedule", resourceCulture); + } + } + /// /// Looks up a localized string similar to End {0} call to RP. /// @@ -87,6 +150,15 @@ internal static string EndMAMLCall { } } + /// + /// Looks up a localized string similar to Evaluating the following autoscale formula on pool {0}: {1}. + /// + internal static string EvaluateAutoScale { + get { + return ResourceManager.GetString("EvaluateAutoScale", resourceCulture); + } + } + /// /// Looks up a localized string similar to Getting all accounts in subscription. /// @@ -672,6 +744,24 @@ internal static string RBU_RemoveUser { } } + /// + /// Looks up a localized string similar to Rebooting compute node {0}.. + /// + internal static string RebootComputeNode { + get { + return ResourceManager.GetString("RebootComputeNode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reimaging compute node {0}.. + /// + internal static string ReimageComputeNode { + get { + return ResourceManager.GetString("ReimageComputeNode", resourceCulture); + } + } + /// /// Looks up a localized string similar to Looking up resource group for account {0}. /// diff --git a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx similarity index 93% rename from src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx rename to src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx index 4c42d4837470..b92e2ee2a8ca 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx @@ -123,9 +123,33 @@ Begin {0} call to RP + + Changing OS version of pool {0} to {1}. + + + Disabling automatic scaling on pool {0}. + + + Disabling job {0}. + + + Disabling job schedule {0}. + + + Enabling automatic scaling on pool {0} using the formula: {1} + + + Enabling job {0}. + + + Enabling job schedule {0}. + End {0} call to RP + + Evaluating the following autoscale formula on pool {0}: {1} + Getting account keys for {0} @@ -321,6 +345,12 @@ Removing user ... + + Rebooting compute node {0}. + + + Reimaging compute node {0}. + Looking up resource group for account {0} diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/GetBatchTaskCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Tasks/GetBatchTaskCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/NewBatchTaskCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Tasks/NewBatchTaskCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs similarity index 93% rename from src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs index f94b9fc81aca..f4b03d86b933 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs @@ -29,6 +29,8 @@ public class Constants public const string AzureBatchNodeFile = "AzureBatchNodeFile"; public const string AzureBatchNodeFileContent = "AzureBatchNodeFileContent"; public const string AzureBatchRemoteDesktopProtocolFile = "AzureBatchRemoteDesktopProtocolFile"; + public const string AzureBatchAutoScale = "AzureBatchAutoScale"; + public const string AzureBatchPoolOSVersion = "AzureBatchPoolOSVersion"; // Parameter sets public const string IdParameterSet = "Id"; diff --git a/src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs similarity index 100% rename from src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs rename to src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs diff --git a/src/ResourceManager/Batch/Commands.Batch/packages.config b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config similarity index 97% rename from src/ResourceManager/Batch/Commands.Batch/packages.config rename to src/ResourceManager/AzureBatch/Commands.Batch/packages.config index 7a59cb958bef..8fa7ba4f6b1b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/packages.config +++ b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj index 3d042cb4ef07..4711bb4a4f4e 100644 --- a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj +++ b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj @@ -80,7 +80,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config index 6c21fea7ffc7..7462c6499e88 100644 --- a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config +++ b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config @@ -9,7 +9,7 @@ - + diff --git a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj index 2305ee4dfd3c..fa154d84d775 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj +++ b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj @@ -91,7 +91,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Compute/Commands.Compute/packages.config b/src/ResourceManager/Compute/Commands.Compute/packages.config index a0b9af557430..ff85137d2ff6 100644 --- a/src/ResourceManager/Compute/Commands.Compute/packages.config +++ b/src/ResourceManager/Compute/Commands.Compute/packages.config @@ -10,7 +10,7 @@ - + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj index 88153aa4ffae..9ddf0dcfc4b2 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config index dbb167cc1b12..c9c0094d6808 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj index ac9542ce6d9d..b67964b51311 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config index 42cd217fa122..6e968733a5db 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj b/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj index f718f84cec9f..41bf729c90e0 100644 --- a/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj +++ b/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj @@ -71,7 +71,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Dns/Commands.Dns.Test/packages.config b/src/ResourceManager/Dns/Commands.Dns.Test/packages.config index ad88e80737fa..7484391e54ae 100644 --- a/src/ResourceManager/Dns/Commands.Dns.Test/packages.config +++ b/src/ResourceManager/Dns/Commands.Dns.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj b/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj index aec80a5f399b..90c854d7d19e 100644 --- a/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj +++ b/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj @@ -104,7 +104,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ResourceManager/Dns/Commands.Dns/packages.config b/src/ResourceManager/Dns/Commands.Dns/packages.config index 128372858626..c80054fab9a1 100644 --- a/src/ResourceManager/Dns/Commands.Dns/packages.config +++ b/src/ResourceManager/Dns/Commands.Dns/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj b/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj index b88565565f25..7efebfe59878 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj @@ -109,7 +109,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/Microsoft.Azure.Commands.HDInsight.dll-help.psd1 b/src/ResourceManager/HDInsight/Commands.HDInsight/Microsoft.Azure.Commands.HDInsight.dll-help.psd1 index 3443fd8abe9b..7f3eded8197b 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/Microsoft.Azure.Commands.HDInsight.dll-help.psd1 +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/Microsoft.Azure.Commands.HDInsight.dll-help.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = 'F237EAAA-BD3A-4965-AD4A-BF38598BFEF7' diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config b/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config index 00d7a4cf3736..ca7b4a5aadcd 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj b/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj index cfc78eb83307..1a46d09887ac 100644 --- a/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj +++ b/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Insights/Commands.Insights.Test/packages.config b/src/ResourceManager/Insights/Commands.Insights.Test/packages.config index 2de0e51b997b..a34279f4bc3b 100644 --- a/src/ResourceManager/Insights/Commands.Insights.Test/packages.config +++ b/src/ResourceManager/Insights/Commands.Insights.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj b/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj index cfe41ca7f8ca..09afb9cbe47e 100644 --- a/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj +++ b/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj @@ -61,7 +61,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Insights/Commands.Insights/packages.config b/src/ResourceManager/Insights/Commands.Insights/packages.config index a0f05c06f9a5..38ad9bb33115 100644 --- a/src/ResourceManager/Insights/Commands.Insights/packages.config +++ b/src/ResourceManager/Insights/Commands.Insights/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj index 874894e8651b..232e853498db 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj +++ b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj @@ -84,7 +84,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config index afb0f60e9f14..41e1fc2735bc 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config +++ b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj b/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj index 93e652ad9c12..4937aa846f9d 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj +++ b/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj @@ -136,7 +136,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config b/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config index 5d4a31f52d93..718631a5f1f6 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config +++ b/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj b/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj index 0d84ae2d1018..2a9b44169db3 100644 --- a/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj +++ b/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj @@ -72,7 +72,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Network/Commands.Network.Test/packages.config b/src/ResourceManager/Network/Commands.Network.Test/packages.config index 4d6eff12c01e..828af3c03c36 100644 --- a/src/ResourceManager/Network/Commands.Network.Test/packages.config +++ b/src/ResourceManager/Network/Commands.Network.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj b/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj index d44e9c0012dc..d38296bc5d70 100644 --- a/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj +++ b/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj @@ -78,7 +78,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -389,6 +389,9 @@ + + Always + Always diff --git a/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.psd1 b/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.psd1 new file mode 100644 index 000000000000..be21895b8e0e --- /dev/null +++ b/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.psd1 @@ -0,0 +1,90 @@ +# +# Module manifest for module 'Microsoft.Azure.Commands.Network' +# +# Generated by: Microsoft Corporation +# +# Generated on: 08/13/2015 +# + +@{ + +# Version number of this module. +ModuleVersion = '0.0.1' + +# ID used to uniquely identify this module +GUID = 'B37DCEB6-F8A8-4C76-B1FC-9C35DFE08977' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = ' Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = '' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '3.0' + +# Name of the Windows PowerShell host required by this module +PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +PowerShellHostVersion = '' + +# Minimum version of the .NET Framework required by this module +DotNetFrameworkVersion = '4.0' + +# Minimum version of the common language runtime (CLR) required by this module +CLRVersion='4.0' + +# Processor architecture (None, X86, Amd64, IA64) required by this module +ProcessorArchitecture = 'None' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @() + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = @() + +# Script files (.ps1) that are run in the caller's environment prior to importing this module +ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = @( + '.\Microsoft.Azure.Commands.Network.format.ps1xml' +) + +# Modules to import as nested modules of the module specified in ModuleToProcess +NestedModules = @( + '.\Microsoft.Azure.Commands.Network.dll' +) + +# Functions to export from this module +FunctionsToExport = '*' + +# Cmdlets to export from this module +CmdletsToExport = '*' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module +AliasesToExport = @() + +# List of all modules packaged with this module +ModuleList = @() + +# List of all files packaged with this module +FileList = @() + +# Private data to pass to the module specified in ModuleToProcess +PrivateData = '' + +} diff --git a/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.xml b/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.xml index a27c5f7c480e..62c74e576a7e 100644 --- a/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.xml +++ b/src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.xml @@ -2,36 +2,105 @@ - Add-AzureLoadBalancerBackendAddressPoolConfig + Add-AzureApplicationGatewayBackendAddressPool - Add a new Backend Address Pool for an Azure Load Balancer + Add - AzureLoadBalancerBackendAddressPoolConfig + AzureApplicationGatewayBackendAddressPool - Add a new Backend Address Pool for an Azure Load Balancer + - Add-AzureLoadBalancerBackendAddressPoolConfig + Add-AzureApplicationGatewayBackendAddressPool + + ApplicationGateway + + + + PSApplicationGateway + Name - The name of the Backend Address Pool. + String + + BackendIPConfigurationIds + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + Add-AzureApplicationGatewayBackendAddressPool - LoadBalancer + ApplicationGateway - The Load Balancer in which this Backend Address Pool will be created. + - PSLoadBalancer + PSApplicationGateway + + + Name + + + + String + + + BackendIPAddresses + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + Add-AzureApplicationGatewayBackendAddressPool + + ApplicationGateway + + + + PSApplicationGateway + + + Name + + + + String + + + BackendFqdns + + + + List`1[String] Profile @@ -43,10 +112,22 @@ + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + Name - The name of the Backend Address Pool. + String @@ -55,14 +136,14 @@ - - LoadBalancer + + BackendIPConfigurationIds - The Load Balancer in which this Backend Address Pool will be created. + - PSLoadBalancer + List`1[String] - PSLoadBalancer + List`1[String] @@ -79,26 +160,26 @@ - - BackendIpConfigurationId + + BackendIPAddresses - A list of Backend Ip Config Id's to associate with this Backend Address Pool. + - list`1[string] + List`1[String] - list`1[string] + List`1[String] - - BackendIpConfiguration + + BackendFqdns - A list of Backend Ips to associate with this Backend Address Pool. + - list`1[psnetworkinterfaceipconfiguration] + List`1[String] - list`1[psnetworkinterfaceipconfiguration] + List`1[String] @@ -112,8 +193,7 @@ - - + @@ -125,8 +205,7 @@ - - + @@ -139,28 +218,6 @@ - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> $nic = Get-AzureNetworkInterface -name "myNic" -ResourceGroupName "myrg" - - Get-AzureLoadBalander -Name "myLB" -ResourceGroupName "myrg" | Add-AzureLoadBalancerBackendAddressPoolConfig -Name $backendAddressPoolName2 -BackendIpConfiguration $nic.IpConfigurations[0] | Set-AzureLoadBalancer - - - - - - - - - - - - - - @@ -168,102 +225,57 @@ - Add-AzureLoadBalancerFrontendIpConfig + Add-AzureApplicationGatewayBackendHttpSettings - Add a new Frontend Ip for an Azure Load Balancer + Add - AzureLoadBalancerFrontendIpConfig + AzureApplicationGatewayBackendHttpSettings - Add a new Frontend Ip for an Azure Load Balancer + - Add-AzureLoadBalancerFrontendIpConfig - - Name - - The name of the Frontend Ip. - - String - + Add-AzureApplicationGatewayBackendHttpSettings - LoadBalancer - - The Load Balancer in which this Frontend Ip will be created. - - PSLoadBalancer - - - PrivateIpAddress - - The Public Ip Address object to associate with this Frontend. - - String - - - SubnetId - - The Id of the Subnet in which this Frontend Ip will be created. - - String - - - PublicIpAddressId - - The Id of the Public Ip Address to associate with this Frontend Ip. - - String - - - Profile + ApplicationGateway - AzureProfile + PSApplicationGateway - - - Add-AzureLoadBalancerFrontendIpConfig Name - The name of the Frontend Ip. + String - - LoadBalancer + + Port - The Load Balancer in which this Frontend Ip will be created. + - PSLoadBalancer + Int32 - - PrivateIpAddress + + Protocol - The Public Ip Address object to associate with this Frontend. + String - - Subnet - - The Subnet object which this Frontend Ip will be created. - - PSSubnet - - - PublicIpAddress + + CookieBasedAffinity - The Public Ip Address to associate with this Frontend Ip. + - PSPublicIpAddress + String Profile @@ -275,46 +287,46 @@ - - Name + + ApplicationGateway - The name of the Frontend Ip. + - String + PSApplicationGateway - String + PSApplicationGateway - - LoadBalancer + + Name - The Load Balancer in which this Frontend Ip will be created. + - PSLoadBalancer + String - PSLoadBalancer + String - - PrivateIpAddress + + Port - The Public Ip Address object to associate with this Frontend. + - String + Int32 - String + Int32 - - SubnetId + + Protocol - The Id of the Subnet in which this Frontend Ip will be created. + String @@ -323,10 +335,10 @@ - - PublicIpAddressId + + CookieBasedAffinity - The Id of the Public Ip Address to associate with this Frontend Ip. + String @@ -347,41 +359,16 @@ - - Subnet - - The Subnet object which this Frontend Ip will be created. - - PSSubnet - - PSSubnet - - - - - - PublicIpAddress - - The Public Ip Address to associate with this Frontend Ip. - - PSPublicIpAddress - - PSPublicIpAddress - - - - - - - + + + - - + @@ -393,8 +380,7 @@ - - + @@ -407,71 +393,6 @@ - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet" - - Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet | Set-AzureLoadBalancer - - Adds a FrontendIpConfig to the loadbalancer with a dynamic privateIPAddress from the specified subnet - - - - - - - - - - - - - - -------------------------- Example 2 -------------------------- - - PS C:\> - - PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet" - - Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet -PrivateIpAddress "10.0.1.6" | Set-AzureLoadBalancer - - Adds a FrontendIpConfig to the loadbalancer with a static privateIPAddress from the specified subnet - - - - - - - - - - - - - - -------------------------- Example 3 -------------------------- - - PS C:\> - - PS C:\> $publicip = Get-AzurePublicIpAddress -ResourceGroupName "myRG" -name "myPub" - Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -PublicIpAddress $publicip | Set-AzureLoadBalancer - - Adds a FrontendIpConfig to the loadbalancer with a publicIP address - - - - - - - - - - - - @@ -479,79 +400,57 @@ - Add-AzureLoadBalancerInboundNatRuleConfig + Add-AzureApplicationGatewayFrontendIPConfig - Add a new Inbound NAT Rule to an Azure Load Balancer + Add - AzureLoadBalancerInboundNatRuleConfig + AzureApplicationGatewayFrontendIPConfig - Add a new Inbound NAT Rule to an Azure Load Balancer + - Add-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Inbound NAT Rule. - - String - + Add-AzureApplicationGatewayFrontendIPConfig - LoadBalancer + ApplicationGateway - The Load Balancer in which this Inbound NAT Rule will be created. + - PSLoadBalancer + PSApplicationGateway - - FrontendIpConfigurationId + + Name - A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + String - Protocol + PrivateIPAddress - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + String - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - - IdleTimeoutInMinutes + Subnet - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + PSSubnet - EnableFloatingIP + PublicIPAddress - Enables Direct Server Return for this Load Balancer NAT Rule. + - SwitchParameter + PSPublicIpAddress Profile @@ -562,63 +461,41 @@ - Add-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Inbound NAT Rule. - - String - + Add-AzureApplicationGatewayFrontendIPConfig - LoadBalancer + ApplicationGateway - The Load Balancer in which this Inbound NAT Rule will be created. - - PSLoadBalancer - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. + - PSFrontendIPConfiguration + PSApplicationGateway - - Protocol + + Name - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + String - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort + PrivateIPAddress - The backend port for traffic matched by this rule. + - Int32 + String - IdleTimeoutInMinutes + SubnetId - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + String - EnableFloatingIP + PublicIPAddressId - Enables Direct Server Return for this Load Balancer NAT Rule. + - SwitchParameter + String Profile @@ -630,34 +507,22 @@ - - Name - - The name of the Inbound NAT Rule. - - String - - String - - - - - LoadBalancer + ApplicationGateway - The Load Balancer in which this Inbound NAT Rule will be created. + - PSLoadBalancer + PSApplicationGateway - PSLoadBalancer + PSApplicationGateway - - FrontendIpConfigurationId + + Name - A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + String @@ -667,10 +532,9 @@ - Protocol + PrivateIPAddress - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + String @@ -680,97 +544,61 @@ - FrontendPort + Subnet - The frontend port matched by this rule. + - Int32 + PSSubnet - Int32 + PSSubnet - BackendPort + PublicIPAddress - The backend port for traffic matched by this rule. + - Int32 + PSPublicIpAddress - Int32 + PSPublicIpAddress - IdleTimeoutInMinutes + Profile - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + AzureProfile - Int32 + AzureProfile - EnableFloatingIP + SubnetId - Enables Direct Server Return for this Load Balancer NAT Rule. + - SwitchParameter + String - SwitchParameter + String - Profile + PublicIPAddressId - AzureProfile + String - AzureProfile - - - - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. - - PSFrontendIPConfiguration - - PSFrontendIPConfiguration - - - - - - BackendIpConfigurationId - - The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. - - string - - string - - - - - - BackendIpConfiguration - - The Backend Ip Configuration to associate with this Inbound NAT Rule. - - psnetworkinterfaceipconfiguration - - psnetworkinterfaceipconfiguration + String @@ -784,8 +612,7 @@ - - + @@ -797,8 +624,7 @@ - - + @@ -811,28 +637,6 @@ - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> $lb = Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" - - $lb | Add-AzureLoadBalancerInboundNatRuleConfig -Name "natRule" -FrontendIPConfiguration$lb.FrontendIPConfigurations[0] -BackendIpConfiguration $nic.IpConfigurations[0] -Protocol Tcp -FrontendPort 3350 -BackendPort 3350 -IdleTimeoutInSeconds 17 -EnableFloatingIP | Set-AzureLoadBalancer - - - - - - - - - - - - - - @@ -840,70 +644,41 @@ - Add-AzureLoadBalancerProbeConfig + Add-AzureApplicationGatewayFrontendPort - Add a new Probe configuration to an Azure Load Balancer + Add - AzureLoadBalancerProbeConfig + AzureApplicationGatewayFrontendPort - Add a new Probe configuration to an Azure Load Balancer + - Add-AzureLoadBalancerProbeConfig - - Name - - The name of the probe configuration. - - String - + Add-AzureApplicationGatewayFrontendPort - LoadBalancer + ApplicationGateway - The Load Balancer in which this probe configuration will be created. + - PSLoadBalancer + PSApplicationGateway - RequestPath - - The path within the load balanced service to probe to determine health. - - String - - - Protocol + Name - The protocol to use for the probing. - Options: Tcp or Http + String Port - The port on which probes should connect to the load balanced service. - - Int32 - - - IntervalInSeconds - - The interval between probes to each instance of the load balanced service. - - Int32 - - - ProbeCount - - The number of per-instance consecutive failures for an instance to be considered unhealthy. + Int32 @@ -917,47 +692,22 @@ - - Name - - The name of the probe configuration. - - String - - String - - - - - LoadBalancer + ApplicationGateway - The Load Balancer in which this probe configuration will be created. + - PSLoadBalancer + PSApplicationGateway - PSLoadBalancer + PSApplicationGateway - RequestPath - - The path within the load balanced service to probe to determine health. - - String - - String - - - - - - Protocol + Name - The protocol to use for the probing. - Options: Tcp or Http + String @@ -969,31 +719,7 @@ Port - The port on which probes should connect to the load balanced service. - - Int32 - - Int32 - - - - - - IntervalInSeconds - - The interval between probes to each instance of the load balanced service. - - Int32 - - Int32 - - - - - - ProbeCount - - The number of per-instance consecutive failures for an instance to be considered unhealthy. + Int32 @@ -1023,8 +749,7 @@ - - + @@ -1036,8 +761,7 @@ - - + @@ -1050,26 +774,6 @@ - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" | Add-AzureLoadBalancerProbeConfig -Name "probeName" -RequestPath healthcheck2.aspx -Protocol http -Port 81 -IntervalInSeconds 16 -ProbeCount 3 | Set-AzureLoadBalancer - - - - - - - - - - - - - - @@ -1077,197 +781,117 @@ - Add-AzureLoadBalancerRuleConfig + Add-AzureApplicationGatewayHttpListener - Add a new Load Balancer Rule to an Azure Load Balancer + Add - AzureLoadBalancerRuleConfig + AzureApplicationGatewayHttpListener - Add a new Load Balancer Rule to an Azure Load Balancer + - Add-AzureLoadBalancerRuleConfig - - Name + Add-AzureApplicationGatewayHttpListener + + ApplicationGateway - The name of the Load Balancer Rule. + - String + PSApplicationGateway - - LoadBalancer + + Name - The Load Balancer in which this Load Balancer Rule will be created. + - PSLoadBalancer + String - FrontendIpConfigurationId + FrontendIPConfigurationId - A list of Frontend Ip Id to associate with this Load Balancer Rule. + String - BackendAddressPoolId + FrontendPortId - The Id of a Backend Address Pool to associate with this Load Balancer Rule. + String - ProbeId + SslCertificateId - The Id of the probe to associate with this Load Balancer Rule. + String - + Protocol - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. + String - FrontendPort + Profile - The frontend port matched by this Load Balancer Rule. + - Int32 + AzureProfile - - BackendPort + + + Add-AzureApplicationGatewayHttpListener + + ApplicationGateway - The backend port for traffic matched by this Load Balancer Rule. + - Int32 + PSApplicationGateway + + + Name + + + + String - IdleTimeoutInMinutes + FrontendIPConfiguration - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + PSApplicationGatewayFrontendIPConfiguration - LoadDistribution + FrontendPort - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers - - String - - - EnableFloatingIP - - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + - SwitchParameter + PSApplicationGatewayFrontendPort - Profile + SslCertificate - AzureProfile + PSApplicationGatewaySslCertificate - - - Add-AzureLoadBalancerRuleConfig - Name - - The name of the Load Balancer Rule. - - String - - - LoadBalancer - - The Load Balancer in which this Load Balancer Rule will be created. - - PSLoadBalancer - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Load Balancer Rule. - - PSFrontendIPConfiguration - - - BackendAddressPool - - The Backend Address Pool to associate with this Load Balancer Rule. - - PSBackendAddressPool - - - Probe - - The probe object to be used for this Load Balancer Rule. - - PSProbe - - Protocol - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. - - String - - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - - LoadDistribution - - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + String - - EnableFloatingIP - - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. - - SwitchParameter - Profile @@ -1278,34 +902,22 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Name - - The name of the Load Balancer Rule. - - String - - String - - - - - LoadBalancer + ApplicationGateway - The Load Balancer in which this Load Balancer Rule will be created. + - PSLoadBalancer + PSApplicationGateway - PSLoadBalancer + PSApplicationGateway - - FrontendIpConfigurationId + + Name - A list of Frontend Ip Id to associate with this Load Balancer Rule. + String @@ -1315,9 +927,9 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - BackendAddressPoolId + FrontendIPConfigurationId - The Id of a Backend Address Pool to associate with this Load Balancer Rule. + String @@ -1327,9 +939,9 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - ProbeId + FrontendPortId - The Id of the probe to associate with this Load Balancer Rule. + String @@ -1339,10 +951,9 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Protocol + SslCertificateId - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. + String @@ -1351,50 +962,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - Int32 - - - - - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 - - Int32 - - - - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - Int32 - - - - - - LoadDistribution + + Protocol - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + String @@ -1403,18 +974,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - EnableFloatingIP - - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. - - SwitchParameter - - SwitchParameter - - - - Profile @@ -1428,37 +987,37 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - FrontendIpConfiguration + FrontendIPConfiguration - A list of Frontend Ips to associate with this Load Balancer Rule. + - PSFrontendIPConfiguration + PSApplicationGatewayFrontendIPConfiguration - PSFrontendIPConfiguration + PSApplicationGatewayFrontendIPConfiguration - BackendAddressPool + FrontendPort - The Backend Address Pool to associate with this Load Balancer Rule. + - PSBackendAddressPool + PSApplicationGatewayFrontendPort - PSBackendAddressPool + PSApplicationGatewayFrontendPort - Probe + SslCertificate - The probe object to be used for this Load Balancer Rule. + - PSProbe + PSApplicationGatewaySslCertificate - PSProbe + PSApplicationGatewaySslCertificate @@ -1472,8 +1031,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -1485,8 +1043,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -1499,28 +1056,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> $lb = Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" - - $lb | Add-AzureLoadBalancerRuleConfig -Name "lbruleName" -FrontendIPConfiguration $lb.FrontendIPConfigurations[0] -BackendAddressPool $lb.BackendAddressPools[0] -Probe $lb.Probes[0] -Protocol Tcp -FrontendPort 80 -BackendPort 80 -IdleTimeoutInSeconds 15 -EnableFloatingIP | Set-AzureLoadBalancer - - - - - - - - - - - - - - @@ -1528,99 +1063,74 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Add-AzureNetworkSecurityRuleConfig + Add-AzureApplicationGatewayIPConfiguration - Add a new Network Security Rule to a Network Security Group + Add - AzureNetworkSecurityRuleConfig + AzureApplicationGatewayIPConfiguration - Add a new Network Security Rule to a Network Security Group + - Add-AzureNetworkSecurityRuleConfig - - Name + Add-AzureApplicationGatewayIPConfiguration + + ApplicationGateway - The name of the Network Security Rule. + - String + PSApplicationGateway - - NetworkSecurityGroup + + Name - The Network Security Group object to which this Network Security Rule will be added. + - PSNetworkSecurityGroup + String - Description + SubnetId - The description of the Network Security Rule. + String - Protocol + Profile - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. - - String - - - SourcePortRange - - Source Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - - DestinationPortRange - - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - - SourceAddressPrefix - - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + - String + AzureProfile - - DestinationAddressPrefix + + + Add-AzureApplicationGatewayIPConfiguration + + ApplicationGateway - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + - String + PSApplicationGateway - - Access + + Name - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny” + String - Priority - - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. - - Int32 - - - Direction + Subnet - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + - String + PSSubnet Profile @@ -1632,94 +1142,22 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Name - - The name of the Network Security Rule. - - String - - String - - - - - NetworkSecurityGroup + ApplicationGateway - The Network Security Group object to which this Network Security Rule will be added. - - PSNetworkSecurityGroup - - PSNetworkSecurityGroup - - - - - - Description - - The description of the Network Security Rule. - - String - - String - - - - - - Protocol - - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. - - String - - String - - - - - - SourcePortRange - - Source Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - String - - - - - - DestinationPortRange - - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - String - - - - - - SourceAddressPrefix - - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + - String + PSApplicationGateway - String + PSApplicationGateway - - DestinationAddressPrefix + + Name - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + String @@ -1729,9 +1167,9 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Access + SubnetId - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny” + String @@ -1741,37 +1179,25 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Priority - - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. - - Int32 - - Int32 - - - - - - Direction + Profile - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + - String + AzureProfile - String + AzureProfile - Profile + Subnet - AzureProfile + PSSubnet - AzureProfile + PSSubnet @@ -1817,50 +1243,64 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Add-AzureVirtualNetworkSubnetConfig + Add-AzureApplicationGatewayRequestRoutingRule - Creates a new Subnet with an existing Virtual Network + Add - AzureVirtualNetworkSubnetConfig + AzureApplicationGatewayRequestRoutingRule - Creates a new Subnet with an existing Virtual Network + - Add-AzureVirtualNetworkSubnetConfig + Add-AzureApplicationGatewayRequestRoutingRule + + ApplicationGateway + + + + PSApplicationGateway + Name - The name of the Subnet. + String - - VirtualNetwork + + RuleType - The Virtual Network object in which this subnet should be created. + - PSVirtualNetwork + String - - AddressPrefix + + BackendHttpSettingsId - The Ip range covered by this Subnet. + String - - NetworkSecurityGroup + + HttpListenerId - The Network Security Group object containing ACLs that will apply to this Subnet. + - PSNetworkSecurityGroup + String + + + BackendAddressPoolId + + + + String Profile @@ -1871,34 +1311,48 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Add-AzureVirtualNetworkSubnetConfig + Add-AzureApplicationGatewayRequestRoutingRule + + ApplicationGateway + + + + PSApplicationGateway + Name - The name of the Subnet. + String - - VirtualNetwork + + RuleType - The Virtual Network object in which this subnet should be created. + - PSVirtualNetwork + String - - AddressPrefix + + BackendHttpSettings - The Ip range covered by this Subnet. + - String + PSApplicationGatewayBackendHttpSettings - - NetworkSecurityGroupId + + HttpListener - A reference to the Network Security Group containing ACLs that will apply to this Subnet. + - String + PSApplicationGatewayHttpListener + + + BackendAddressPool + + + + PSApplicationGatewayBackendAddressPool Profile @@ -1910,34 +1364,34 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Name + + ApplicationGateway - The name of the Subnet. + - String + PSApplicationGateway - String + PSApplicationGateway - - VirtualNetwork + + Name - The Virtual Network object in which this subnet should be created. + - PSVirtualNetwork + String - PSVirtualNetwork + String - AddressPrefix + RuleType - The Ip range covered by this Subnet. + String @@ -1946,14 +1400,38 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - NetworkSecurityGroup + + BackendHttpSettingsId - The Network Security Group object containing ACLs that will apply to this Subnet. + - PSNetworkSecurityGroup + String - PSNetworkSecurityGroup + String + + + + + + HttpListenerId + + + + String + + String + + + + + + BackendAddressPoolId + + + + String + + String @@ -1970,26 +1448,38 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - NetworkSecurityGroupId + + BackendHttpSettings - A reference to the Network Security Group containing ACLs that will apply to this Subnet. + - String + PSApplicationGatewayBackendHttpSettings - String + PSApplicationGatewayBackendHttpSettings - DnsServer + HttpListener - The Dns servers to be used for performing Dns lookups from this Subnet. + - list`1[string] + PSApplicationGatewayHttpListener - list`1[string] + PSApplicationGatewayHttpListener + + + + + + BackendAddressPool + + + + PSApplicationGatewayBackendAddressPool + + PSApplicationGatewayBackendAddressPool @@ -2003,8 +1493,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2016,8 +1505,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2034,39 +1522,51 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Test-AzureDnsAvailability + Add-AzureApplicationGatewaySslCertificate - Checks whether a domain name in the cloudapp.net zone is available for use + - Get - AzureCheckDnsAvailability + Add + AzureApplicationGatewaySslCertificate - Checks whether a domain name in the {region}.cloudapp.azure.com zone is available for use + - Test-AzureDnsAvailability + Add-AzureApplicationGatewaySslCertificate + + ApplicationGateway + + + + PSApplicationGateway + - DomainQualifiedName + Name - The domain name to be verified. - It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + String - Location + CertificateFile - The Azure Region in which you wish to check for availability. + + + String + + + Password + + String @@ -2080,11 +1580,22 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + - DomainQualifiedName + Name - The domain name to be verified. - It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + String @@ -2094,9 +1605,21 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Location + CertificateFile - The Azure Region in which you wish to check for availability. + + + String + + String + + + + + + Password + + String @@ -2126,8 +1649,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2139,8 +1661,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2157,40 +1678,39 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Get-AzureLoadBalancer + Add-AzureLoadBalancerBackendAddressPoolConfig - Retrieve a single Load Balancer or a list of Load Balancers within a Resource Group + Add a new Backend Address Pool for an Azure Load Balancer - Get - AzureLoadBalancer + Add + AzureLoadBalancerBackendAddressPoolConfig - Retrieve a single Load Balancer or a list of Load Balancers within a Resource Group + Add a new Backend Address Pool for an Azure Load Balancer - Get-AzureLoadBalancer - + Add-AzureLoadBalancerBackendAddressPoolConfig + Name - The name of the Load Balancer to retrieve. + The name of the Backend Address Pool. String - - ResourceGroupName + + LoadBalancer - The name of the Resource Group containing the Load Balancer. + The Load Balancer in which this Backend Address Pool will be created. - String + PSLoadBalancer Profile @@ -2202,10 +1722,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Load Balancer to retrieve. + The name of the Backend Address Pool. String @@ -2214,14 +1734,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ResourceGroupName + + LoadBalancer - The name of the Resource Group containing the Load Balancer. + The Load Balancer in which this Backend Address Pool will be created. - String + PSLoadBalancer - String + PSLoadBalancer @@ -2238,6 +1758,30 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map + + BackendIpConfigurationId + + A list of Backend Ip Config Id's to associate with this Backend Address Pool. + + list`1[string] + + list`1[string] + + + + + + BackendIpConfiguration + + A list of Backend Ips to associate with this Backend Address Pool. + + list`1[psnetworkinterfaceipconfiguration] + + list`1[psnetworkinterfaceipconfiguration] + + + + @@ -2274,6 +1818,28 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> $nic = Get-AzureNetworkInterface -name "myNic" -ResourceGroupName "myrg" + + Get-AzureLoadBalander -Name "myLB" -ResourceGroupName "myrg" | Add-AzureLoadBalancerBackendAddressPoolConfig -Name $backendAddressPoolName2 -BackendIpConfiguration $nic.IpConfigurations[0] | Set-AzureLoadBalancer + + + + + + + + + + + + + + @@ -2281,37 +1847,58 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureLoadBalancerBackendAddressPoolConfig + Add-AzureLoadBalancerFrontendIpConfig - Retrieve a single Backend Address Pool or a list of Backend Address Pools within a Load Balancer + Add a new Frontend Ip for an Azure Load Balancer - Get - AzureLoadBalancerBackendAddressPoolConfig + Add + AzureLoadBalancerFrontendIpConfig - Retrieve a single Backend Address Pool or a list of Backend Address Pools within a Load Balancer + Add a new Frontend Ip for an Azure Load Balancer - Get-AzureLoadBalancerBackendAddressPoolConfig - + Add-AzureLoadBalancerFrontendIpConfig + Name - The name of the Load Balancer containing the Backend Address Pool. + The name of the Frontend Ip. String LoadBalancer - The name of the Backend Address Pool to retrieve. + The Load Balancer in which this Frontend Ip will be created. PSLoadBalancer + + PrivateIpAddress + + The Public Ip Address object to associate with this Frontend. + + String + + + SubnetId + + The Id of the Subnet in which this Frontend Ip will be created. + + String + + + PublicIpAddressId + + The Id of the Public Ip Address to associate with this Frontend Ip. + + String + Profile @@ -2320,118 +1907,43 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map AzureProfile - - - - Name - - The name of the Load Balancer containing the Backend Address Pool. - - String - - String - - - - - - LoadBalancer - - The name of the Backend Address Pool to retrieve. - - PSLoadBalancer - - PSLoadBalancer - - - - - - Profile - - - - AzureProfile - - AzureProfile - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureLoadBalancerFrontendIpConfig - - Retrieve a single Frontend Ip or a list of Frontend Ips within a Load Balancer - - - - - Get - AzureLoadBalancerFrontendIpConfig - - - - Retrieve a single Frontend Ip or a list of Frontend Ips within a Load Balancer - - - Get-AzureLoadBalancerFrontendIpConfig - + Add-AzureLoadBalancerFrontendIpConfig + Name - The name of the Load Balancer containing the Frontend Ip. + The name of the Frontend Ip. String LoadBalancer - The Load Balancer with which this Frontend Ip config will be associated. + The Load Balancer in which this Frontend Ip will be created. PSLoadBalancer + + PrivateIpAddress + + The Public Ip Address object to associate with this Frontend. + + String + + + Subnet + + The Subnet object which this Frontend Ip will be created. + + PSSubnet + + + PublicIpAddress + + The Public Ip Address to associate with this Frontend Ip. + + PSPublicIpAddress + Profile @@ -2442,10 +1954,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Load Balancer containing the Frontend Ip. + The name of the Frontend Ip. String @@ -2457,7 +1969,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map LoadBalancer - The Load Balancer with which this Frontend Ip config will be associated. + The Load Balancer in which this Frontend Ip will be created. PSLoadBalancer @@ -2467,105 +1979,21 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Profile + PrivateIpAddress - + The Public Ip Address object to associate with this Frontend. - AzureProfile + String - AzureProfile + String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureLoadBalancerInboundNatRuleConfig - - Retrieve a single Inbound NAT Rule or a list of Inbound NAT Rules within a Load Balancer - - - - - Get - AzureLoadBalancerInboundNatRuleConfig - - - - Retrieve a single Inbound NAT Rule or a list of Inbound NAT Rules within a Load Balancer - - - - Get-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Inbound NAT Rule to retrieve. - - String - - - LoadBalancer - - The name of the Load Balancer containing the Inbound NAT Rule. - - PSLoadBalancer - - - Profile - - - - AzureProfile - - - - - Name + SubnetId - The name of the Inbound NAT Rule to retrieve. + The Id of the Subnet in which this Frontend Ip will be created. String @@ -2574,14 +2002,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - LoadBalancer + + PublicIpAddressId - The name of the Load Balancer containing the Inbound NAT Rule. + The Id of the Public Ip Address to associate with this Frontend Ip. - PSLoadBalancer + String - PSLoadBalancer + String @@ -2598,6 +2026,30 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map + + Subnet + + The Subnet object which this Frontend Ip will be created. + + PSSubnet + + PSSubnet + + + + + + PublicIpAddress + + The Public Ip Address to associate with this Frontend Ip. + + PSPublicIpAddress + + PSPublicIpAddress + + + + @@ -2634,43 +2086,12204 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - - - - - - + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet" + + Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet | Set-AzureLoadBalancer + + Adds a FrontendIpConfig to the loadbalancer with a dynamic privateIPAddress from the specified subnet + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet" + + Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet -PrivateIpAddress "10.0.1.6" | Set-AzureLoadBalancer + + Adds a FrontendIpConfig to the loadbalancer with a static privateIPAddress from the specified subnet + + + + + + + + + + + + + + -------------------------- Example 3 -------------------------- + + PS C:\> + + PS C:\> $publicip = Get-AzurePublicIpAddress -ResourceGroupName "myRG" -name "myPub" + Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -PublicIpAddress $publicip | Set-AzureLoadBalancer + + Adds a FrontendIpConfig to the loadbalancer with a publicIP address + + + + + + + + + + + + + + + + + + + + Add-AzureLoadBalancerInboundNatRuleConfig + + Add a new Inbound NAT Rule to an Azure Load Balancer + + + + + Add + AzureLoadBalancerInboundNatRuleConfig + + + + Add a new Inbound NAT Rule to an Azure Load Balancer + + + + Add-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Inbound NAT Rule. + + String + + + LoadBalancer + + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + + String + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + Add-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Inbound NAT Rule. + + String + + + LoadBalancer + + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Inbound NAT Rule. + + String + + String + + + + + + LoadBalancer + + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + PSLoadBalancer + + + + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + + String + + String + + + + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + String + + + + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + Int32 + + + + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + PSFrontendIPConfiguration + + + + + + BackendIpConfigurationId + + The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. + + string + + string + + + + + + BackendIpConfiguration + + The Backend Ip Configuration to associate with this Inbound NAT Rule. + + psnetworkinterfaceipconfiguration + + psnetworkinterfaceipconfiguration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> $lb = Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" + + $lb | Add-AzureLoadBalancerInboundNatRuleConfig -Name "natRule" -FrontendIPConfiguration$lb.FrontendIPConfigurations[0] -BackendIpConfiguration $nic.IpConfigurations[0] -Protocol Tcp -FrontendPort 3350 -BackendPort 3350 -IdleTimeoutInSeconds 17 -EnableFloatingIP | Set-AzureLoadBalancer + + + + + + + + + + + + + + + + + + + + + + Add-AzureLoadBalancerProbeConfig + + Add a new Probe configuration to an Azure Load Balancer + + + + + Add + AzureLoadBalancerProbeConfig + + + + Add a new Probe configuration to an Azure Load Balancer + + + + Add-AzureLoadBalancerProbeConfig + + Name + + The name of the probe configuration. + + String + + + LoadBalancer + + The Load Balancer in which this probe configuration will be created. + + PSLoadBalancer + + + RequestPath + + The path within the load balanced service to probe to determine health. + + String + + + Protocol + + The protocol to use for the probing. + Options: Tcp or Http + + String + + + Port + + The port on which probes should connect to the load balanced service. + + Int32 + + + IntervalInSeconds + + The interval between probes to each instance of the load balanced service. + + Int32 + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the probe configuration. + + String + + String + + + + + + LoadBalancer + + The Load Balancer in which this probe configuration will be created. + + PSLoadBalancer + + PSLoadBalancer + + + + + + RequestPath + + The path within the load balanced service to probe to determine health. + + String + + String + + + + + + Protocol + + The protocol to use for the probing. + Options: Tcp or Http + + String + + String + + + + + + Port + + The port on which probes should connect to the load balanced service. + + Int32 + + Int32 + + + + + + IntervalInSeconds + + The interval between probes to each instance of the load balanced service. + + Int32 + + Int32 + + + + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 + + Int32 + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" | Add-AzureLoadBalancerProbeConfig -Name "probeName" -RequestPath healthcheck2.aspx -Protocol http -Port 81 -IntervalInSeconds 16 -ProbeCount 3 | Set-AzureLoadBalancer + + + + + + + + + + + + + + + + + + + + + + Add-AzureLoadBalancerRuleConfig + + Add a new Load Balancer Rule to an Azure Load Balancer + + + + + Add + AzureLoadBalancerRuleConfig + + + + Add a new Load Balancer Rule to an Azure Load Balancer + + + + Add-AzureLoadBalancerRuleConfig + + Name + + The name of the Load Balancer Rule. + + String + + + LoadBalancer + + The Load Balancer in which this Load Balancer Rule will be created. + + PSLoadBalancer + + + FrontendIpConfigurationId + + A list of Frontend Ip Id to associate with this Load Balancer Rule. + + String + + + BackendAddressPoolId + + The Id of a Backend Address Pool to associate with this Load Balancer Rule. + + String + + + ProbeId + + The Id of the probe to associate with this Load Balancer Rule. + + String + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + Add-AzureLoadBalancerRuleConfig + + Name + + The name of the Load Balancer Rule. + + String + + + LoadBalancer + + The Load Balancer in which this Load Balancer Rule will be created. + + PSLoadBalancer + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Load Balancer Rule. + + PSFrontendIPConfiguration + + + BackendAddressPool + + The Backend Address Pool to associate with this Load Balancer Rule. + + PSBackendAddressPool + + + Probe + + The probe object to be used for this Load Balancer Rule. + + PSProbe + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer Rule. + + String + + String + + + + + + LoadBalancer + + The Load Balancer in which this Load Balancer Rule will be created. + + PSLoadBalancer + + PSLoadBalancer + + + + + + FrontendIpConfigurationId + + A list of Frontend Ip Id to associate with this Load Balancer Rule. + + String + + String + + + + + + BackendAddressPoolId + + The Id of a Backend Address Pool to associate with this Load Balancer Rule. + + String + + String + + + + + + ProbeId + + The Id of the probe to associate with this Load Balancer Rule. + + String + + String + + + + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. + + String + + String + + + + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + String + + + + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Load Balancer Rule. + + PSFrontendIPConfiguration + + PSFrontendIPConfiguration + + + + + + BackendAddressPool + + The Backend Address Pool to associate with this Load Balancer Rule. + + PSBackendAddressPool + + PSBackendAddressPool + + + + + + Probe + + The probe object to be used for this Load Balancer Rule. + + PSProbe + + PSProbe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> $lb = Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg" + + $lb | Add-AzureLoadBalancerRuleConfig -Name "lbruleName" -FrontendIPConfiguration $lb.FrontendIPConfigurations[0] -BackendAddressPool $lb.BackendAddressPools[0] -Probe $lb.Probes[0] -Protocol Tcp -FrontendPort 80 -BackendPort 80 -IdleTimeoutInSeconds 15 -EnableFloatingIP | Set-AzureLoadBalancer + + + + + + + + + + + + + + + + + + + + + + Add-AzureNetworkSecurityRuleConfig + + Add a new Network Security Rule to a Network Security Group + + + + + Add + AzureNetworkSecurityRuleConfig + + + + Add a new Network Security Rule to a Network Security Group + + + + Add-AzureNetworkSecurityRuleConfig + + Name + + The name of the Network Security Rule. + + String + + + NetworkSecurityGroup + + The Network Security Group object to which this Network Security Rule will be added. + + PSNetworkSecurityGroup + + + Description + + The description of the Network Security Rule. + + String + + + Protocol + + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + + String + + + SourcePortRange + + Source Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + + DestinationPortRange + + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + + SourceAddressPrefix + + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + DestinationAddressPrefix + + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + Access + + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny” + + String + + + Priority + + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + + Int32 + + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Rule. + + String + + String + + + + + + NetworkSecurityGroup + + The Network Security Group object to which this Network Security Rule will be added. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + Description + + The description of the Network Security Rule. + + String + + String + + + + + + Protocol + + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + + String + + String + + + + + + SourcePortRange + + Source Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + String + + + + + + DestinationPortRange + + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + String + + + + + + SourceAddressPrefix + + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + String + + + + + + DestinationAddressPrefix + + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + String + + + + + + Access + + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny” + + String + + String + + + + + + Priority + + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + + Int32 + + Int32 + + + + + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Add-AzureRouteConfig + + Adds a Route to a Route Table + + + + + Add + AzureRouteConfig + + + + Adds a Route to a Route Table + + + + Add-AzureRouteConfig + + Name + + Name of the Route + + String + + + RouteTable + + The Route Table object to which this Route will be added. + + PSRouteTable + + + AddressPrefix + + The destination CIDR to which the route applies, such as 10.1.0.0/16 + + String + + + NextHopType + + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. + + String + + + NextHopIpAddress + + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + Name of the Route + + String + + String + + + + + + RouteTable + + The Route Table object to which this Route will be added. + + PSRouteTable + + PSRouteTable + + + + + + AddressPrefix + + The destination CIDR to which the route applies, such as 10.1.0.0/16 + + String + + String + + + + + + NextHopType + + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. + + String + + String + + + + + + NextHopIpAddress + + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Add-AzureVirtualNetworkSubnetConfig + + Creates a new Subnet with an existing Virtual Network + + + + + Add + AzureVirtualNetworkSubnetConfig + + + + Creates a new Subnet with an existing Virtual Network + + + + Add-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet. + + String + + + VirtualNetwork + + The Virtual Network object in which this subnet should be created. + + PSVirtualNetwork + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + + NetworkSecurityGroup + + The Network Security Group object containing ACLs that will apply to this Subnet. + + PSNetworkSecurityGroup + + + RouteTable + + The Route Table object containing Routes that will apply to this Subnet. + + PSRouteTable + + + Profile + + + + AzureProfile + + + + Add-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet. + + String + + + VirtualNetwork + + The Virtual Network object in which this subnet should be created. + + PSVirtualNetwork + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + + NetworkSecurityGroupId + + A reference to the Network Security Group containing ACLs that will apply to this Subnet. + + String + + + RouteTableId + + A reference to a Route Table object containing Routes that will apply to this Subnet. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Subnet. + + String + + String + + + + + + VirtualNetwork + + The Virtual Network object in which this subnet should be created. + + PSVirtualNetwork + + PSVirtualNetwork + + + + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + String + + + + + + NetworkSecurityGroup + + The Network Security Group object containing ACLs that will apply to this Subnet. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + RouteTable + + The Route Table object containing Routes that will apply to this Subnet. + + PSRouteTable + + PSRouteTable + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + NetworkSecurityGroupId + + A reference to the Network Security Group containing ACLs that will apply to this Subnet. + + String + + String + + + + + + RouteTableId + + A reference to a Route Table object containing Routes that will apply to this Subnet. + + String + + String + + + + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this Subnet. + + list`1[string] + + list`1[string] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGateway + + + + + + + Get + AzureApplicationGateway + + + + + + + + Get-AzureApplicationGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayBackendAddressPool + + + + + + + Get + AzureApplicationGatewayBackendAddressPool + + + + + + + + Get-AzureApplicationGatewayBackendAddressPool + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayBackendHttpSettings + + + + + + + Get + AzureApplicationGatewayBackendHttpSettings + + + + + + + + Get-AzureApplicationGatewayBackendHttpSettings + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayFrontendIPConfig + + + + + + + Get + AzureApplicationGatewayFrontendIPConfig + + + + + + + + Get-AzureApplicationGatewayFrontendIPConfig + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayFrontendPort + + + + + + + Get + AzureApplicationGatewayFrontendPort + + + + + + + + Get-AzureApplicationGatewayFrontendPort + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayHttpListener + + + + + + + Get + AzureApplicationGatewayHttpListener + + + + + + + + Get-AzureApplicationGatewayHttpListener + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayIPConfiguration + + + + + + + Get + AzureApplicationGatewayIPConfiguration + + + + + + + + Get-AzureApplicationGatewayIPConfiguration + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewayRequestRoutingRule + + + + + + + Get + AzureApplicationGatewayRequestRoutingRule + + + + + + + + Get-AzureApplicationGatewayRequestRoutingRule + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewaySku + + + + + + + Get + AzureApplicationGatewaySku + + + + + + + + Get-AzureApplicationGatewaySku + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureApplicationGatewaySslCertificate + + + + + + + Get + AzureApplicationGatewaySslCertificate + + + + + + + + Get-AzureApplicationGatewaySslCertificate + + Name + + + + String + + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancer + + Retrieve a single Load Balancer or a list of Load Balancers within a Resource Group + + + + + Get + AzureLoadBalancer + + + + Retrieve a single Load Balancer or a list of Load Balancers within a Resource Group + + + + Get-AzureLoadBalancer + + Name + + The name of the Load Balancer to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Load Balancer. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Load Balancer. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancerBackendAddressPoolConfig + + Retrieve a single Backend Address Pool or a list of Backend Address Pools within a Load Balancer + + + + + Get + AzureLoadBalancerBackendAddressPoolConfig + + + + Retrieve a single Backend Address Pool or a list of Backend Address Pools within a Load Balancer + + + + Get-AzureLoadBalancerBackendAddressPoolConfig + + Name + + The name of the Load Balancer containing the Backend Address Pool. + + String + + + LoadBalancer + + The name of the Backend Address Pool to retrieve. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer containing the Backend Address Pool. + + String + + String + + + + + + LoadBalancer + + The name of the Backend Address Pool to retrieve. + + PSLoadBalancer + + PSLoadBalancer + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancerFrontendIpConfig + + Retrieve a single Frontend Ip or a list of Frontend Ips within a Load Balancer + + + + + Get + AzureLoadBalancerFrontendIpConfig + + + + Retrieve a single Frontend Ip or a list of Frontend Ips within a Load Balancer + + + + Get-AzureLoadBalancerFrontendIpConfig + + Name + + The name of the Load Balancer containing the Frontend Ip. + + String + + + LoadBalancer + + The Load Balancer with which this Frontend Ip config will be associated. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer containing the Frontend Ip. + + String + + String + + + + + + LoadBalancer + + The Load Balancer with which this Frontend Ip config will be associated. + + PSLoadBalancer + + PSLoadBalancer + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancerInboundNatRuleConfig + + Retrieve a single Inbound NAT Rule or a list of Inbound NAT Rules within a Load Balancer + + + + + Get + AzureLoadBalancerInboundNatRuleConfig + + + + Retrieve a single Inbound NAT Rule or a list of Inbound NAT Rules within a Load Balancer + + + + Get-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Inbound NAT Rule to retrieve. + + String + + + LoadBalancer + + The name of the Load Balancer containing the Inbound NAT Rule. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Inbound NAT Rule to retrieve. + + String + + String + + + + + + LoadBalancer + + The name of the Load Balancer containing the Inbound NAT Rule. + + PSLoadBalancer + + PSLoadBalancer + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancerProbeConfig - Retrieve a single Probe configuration or a list of Probe configurations within a Load Balancer + Retrieve a single Probe configuration or a list of Probe configurations within a Load Balancer + + + + + Get + AzureLoadBalancerProbeConfig + + + + Retrieve a single Probe configuration or a list of Probe configurations within a Load Balancer + + + + Get-AzureLoadBalancerProbeConfig + + Name + + The name of the probe configuration to retrieve. + + String + + + LoadBalancer + + The name of the Load Balancer containing the probe configuration. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the probe configuration to retrieve. + + String + + String + + + + + + LoadBalancer + + The name of the Load Balancer containing the probe configuration. + + PSLoadBalancer + + PSLoadBalancer + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLoadBalancerRuleConfig + + Retrieve a single Load Balancer Rule or a list of Load Balancer Rules within a Load Balancer + + + + + Get + AzureLoadBalancerRuleConfig + + + + Retrieve a single Load Balancer Rule or a list of Load Balancer Rules within a Load Balancer + + + + Get-AzureLoadBalancerRuleConfig + + Name + + The name of the Load Balancer Rule to retrieve. + + String + + + LoadBalancer + + The name of the Load Balancer containing the Load Balancer Rule. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer Rule to retrieve. + + String + + String + + + + + + LoadBalancer + + The name of the Load Balancer containing the Load Balancer Rule. + + PSLoadBalancer + + PSLoadBalancer + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureLocalNetworkGateway + + + + + + + Get + AzureLocalNetworkGateway + + + + + + + + Get-AzureLocalNetworkGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureNetworkInterface + + Retrieve a single Network Interface or a list of Network Interfaces within a Resource Group + + + + + Get + AzureNetworkInterface + + + + Retrieve a single Network Interface or a list of Network Interfaces within a Resource Group + + + + Get-AzureNetworkInterface + + Name + + The name of the Network Interface to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Network Interface + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Interface to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Network Interface + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureNetworkSecurityGroup + + Get an existing Network Security Group. + + + + + Get + AzureNetworkSecurityGroup + + + + Get an existing Network Security Group. + + + + Get-AzureNetworkSecurityGroup + + Name + + The name of the Network Security Group to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Network Security Group. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Group to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Network Security Group. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureNetworkSecurityRuleConfig + + Get an existing Network Security Rule within a Network Security Group. + + + + + Get + AzureNetworkSecurityRuleConfig + + + + Get an existing Network Security Rule within a Network Security Group. + + + + Get-AzureNetworkSecurityRuleConfig + + Name + + The name of the Network Security Rule to retrieve. + + String + + + NetworkSecurityGroup + + The Network Security Group object containing the Network Security Rule to retrieve. + + PSNetworkSecurityGroup + + + DefaultRules + + Switch on whether to get user-created rules, or default rules. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Rule to retrieve. + + String + + String + + + + + + NetworkSecurityGroup + + The Network Security Group object containing the Network Security Rule to retrieve. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + DefaultRules + + Switch on whether to get user-created rules, or default rules. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzurePublicIpAddress + + Retrieve a single Public Ip Address or a list of Public Ip Addresses within a Resource Group + + + + + Get + AzurePublicIpAddress + + + + Retrieve a single Public Ip Address or a list of Public Ip Addresses within a Resource Group + + + + Get-AzurePublicIpAddress + + Name + + The name of the Public Ip Address to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Public Ip Address. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Public Ip Address to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Public Ip Address. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRouteConfig + + Retrieve a single Route or a list of Route within a Route Table + + + + + Get + AzureRouteConfig + + + + Retrieve a single Route or a list of Route within a Route Table + + + + Get-AzureRouteConfig + + Name + + Name of the Route + + String + + + RouteTable + + The Route Table with which this Route will be associated. + + PSRouteTable + + + Profile + + + + AzureProfile + + + + + + Name + + Name of the Route + + String + + String + + + + + + RouteTable + + The Route Table with which this Route will be associated. + + PSRouteTable + + PSRouteTable + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRouteTable + + Retrieve a single Route Table or a list of Route Tables within a Resource Group or a list of Route Tables in the subscription + + + + + Get + AzureRouteTable + + + + Retrieve a single Route Table or a list of Route Tables within a Resource Group or a list of Route Tables in the subscription + + + + Get-AzureRouteTable + + Name + + The name of the Route Table to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Route Table. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Route Table to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Route Table. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureVirtualNetwork + + Retrieve a single Virtual Network or a list of Virtual Networks within a Resource Group + + + + + Get + AzureVirtualNetwork + + + + Retrieve a single Virtual Network or a list of Virtual Networks within a Resource Group + + + + Get-AzureVirtualNetwork + + Name + + The name of the Virtual Network to retrieve. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Virtual Network + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Virtual Network to retrieve. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Virtual Network + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureVirtualNetworkGateway + + + + + + + Get + AzureVirtualNetworkGateway + + + + + + + + Get-AzureVirtualNetworkGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureVirtualNetworkGatewayConnection + + + + + + + Get + AzureVirtualNetworkGatewayConnection + + + + + + + + Get-AzureVirtualNetworkGatewayConnection + + Name + + + + String + + + ResourceGroupName + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureVirtualNetworkGatewayConnectionSharedKey + + + + + + + Get + AzureVirtualNetworkGatewayConnectionSharedKey + + + + + + + + Get-AzureVirtualNetworkGatewayConnectionSharedKey + + Name + + + + String + + + ResourceGroupName + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureVirtualNetworkSubnetConfig + + Retrieve a single Subnet or a list of Subnets within a Virtual Network + + + + + Get + AzureVirtualNetworkSubnetConfig + + + + Retrieve a single Subnet or a list of Subnets within a Virtual Network + + + + Get-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet to retrieve. + + String + + + VirtualNetwork + + The Virtual Network containing the Subnet. + + PSVirtualNetwork + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Subnet to retrieve. + + String + + String + + + + + + VirtualNetwork + + The Virtual Network containing the Subnet. + + PSVirtualNetwork + + PSVirtualNetwork + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGateway + + + + + + + New + AzureApplicationGateway + + + + + + + + New-AzureApplicationGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Location + + + + String + + + Sku + + + + PSApplicationGatewaySku + + + GatewayIPConfigurations + + + + List`1[PSApplicationGatewayIPConfiguration] + + + SslCertificates + + + + List`1[PSApplicationGatewaySslCertificate] + + + FrontendIPConfigurations + + + + List`1[PSApplicationGatewayFrontendIPConfiguration] + + + FrontendPorts + + + + List`1[PSApplicationGatewayFrontendPort] + + + BackendAddressPools + + + + List`1[PSApplicationGatewayBackendAddressPool] + + + BackendHttpSettingsCollection + + + + List`1[PSApplicationGatewayBackendHttpSettings] + + + HttpListeners + + + + List`1[PSApplicationGatewayHttpListener] + + + RequestRoutingRules + + + + List`1[PSApplicationGatewayRequestRoutingRule] + + + Tag + + + + Hashtable[] + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + Sku + + + + PSApplicationGatewaySku + + PSApplicationGatewaySku + + + + + + GatewayIPConfigurations + + + + List`1[PSApplicationGatewayIPConfiguration] + + List`1[PSApplicationGatewayIPConfiguration] + + + + + + SslCertificates + + + + List`1[PSApplicationGatewaySslCertificate] + + List`1[PSApplicationGatewaySslCertificate] + + + + + + FrontendIPConfigurations + + + + List`1[PSApplicationGatewayFrontendIPConfiguration] + + List`1[PSApplicationGatewayFrontendIPConfiguration] + + + + + + FrontendPorts + + + + List`1[PSApplicationGatewayFrontendPort] + + List`1[PSApplicationGatewayFrontendPort] + + + + + + BackendAddressPools + + + + List`1[PSApplicationGatewayBackendAddressPool] + + List`1[PSApplicationGatewayBackendAddressPool] + + + + + + BackendHttpSettingsCollection + + + + List`1[PSApplicationGatewayBackendHttpSettings] + + List`1[PSApplicationGatewayBackendHttpSettings] + + + + + + HttpListeners + + + + List`1[PSApplicationGatewayHttpListener] + + List`1[PSApplicationGatewayHttpListener] + + + + + + RequestRoutingRules + + + + List`1[PSApplicationGatewayRequestRoutingRule] + + List`1[PSApplicationGatewayRequestRoutingRule] + + + + + + Tag + + + + Hashtable[] + + Hashtable[] + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayBackendAddressPool + + + + + + + New + AzureApplicationGatewayBackendAddressPool + + + + + + + + New-AzureApplicationGatewayBackendAddressPool + + Name + + + + String + + + BackendIPConfigurationIds + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayBackendAddressPool + + Name + + + + String + + + BackendIPAddresses + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayBackendAddressPool + + Name + + + + String + + + BackendFqdns + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + BackendIPConfigurationIds + + + + List`1[String] + + List`1[String] + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + BackendIPAddresses + + + + List`1[String] + + List`1[String] + + + + + + BackendFqdns + + + + List`1[String] + + List`1[String] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayBackendHttpSettings + + + + + + + New + AzureApplicationGatewayBackendHttpSettings + + + + + + + + New-AzureApplicationGatewayBackendHttpSettings + + Name + + + + String + + + Port + + + + Int32 + + + Protocol + + + + String + + + CookieBasedAffinity + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + Port + + + + Int32 + + Int32 + + + + + + Protocol + + + + String + + String + + + + + + CookieBasedAffinity + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayFrontendIPConfig + + + + + + + New + AzureApplicationGatewayFrontendIPConfig + + + + + + + + New-AzureApplicationGatewayFrontendIPConfig + + Name + + + + String + + + PrivateIPAddress + + + + String + + + Subnet + + + + PSSubnet + + + PublicIPAddress + + + + PSPublicIpAddress + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayFrontendIPConfig + + Name + + + + String + + + PrivateIPAddress + + + + String + + + SubnetId + + + + String + + + PublicIPAddressId + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + PrivateIPAddress + + + + String + + String + + + + + + Subnet + + + + PSSubnet + + PSSubnet + + + + + + PublicIPAddress + + + + PSPublicIpAddress + + PSPublicIpAddress + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + SubnetId + + + + String + + String + + + + + + PublicIPAddressId + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayFrontendPort + + + + + + + New + AzureApplicationGatewayFrontendPort + + + + + + + + New-AzureApplicationGatewayFrontendPort + + Name + + + + String + + + Port + + + + Int32 + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + Port + + + + Int32 + + Int32 + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayHttpListener + + + + + + + New + AzureApplicationGatewayHttpListener + + + + + + + + New-AzureApplicationGatewayHttpListener + + Name + + + + String + + + FrontendIPConfigurationId + + + + String + + + FrontendPortId + + + + String + + + SslCertificateId + + + + String + + + Protocol + + + + String + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayHttpListener + + Name + + + + String + + + FrontendIPConfiguration + + + + PSApplicationGatewayFrontendIPConfiguration + + + FrontendPort + + + + PSApplicationGatewayFrontendPort + + + SslCertificate + + + + PSApplicationGatewaySslCertificate + + + Protocol + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + FrontendIPConfigurationId + + + + String + + String + + + + + + FrontendPortId + + + + String + + String + + + + + + SslCertificateId + + + + String + + String + + + + + + Protocol + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + FrontendIPConfiguration + + + + PSApplicationGatewayFrontendIPConfiguration + + PSApplicationGatewayFrontendIPConfiguration + + + + + + FrontendPort + + + + PSApplicationGatewayFrontendPort + + PSApplicationGatewayFrontendPort + + + + + + SslCertificate + + + + PSApplicationGatewaySslCertificate + + PSApplicationGatewaySslCertificate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayIPConfiguration + + + + + + + New + AzureApplicationGatewayIPConfiguration + + + + + + + + New-AzureApplicationGatewayIPConfiguration + + Name + + + + String + + + SubnetId + + + + String + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayIPConfiguration + + Name + + + + String + + + Subnet + + + + PSSubnet + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + SubnetId + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + Subnet + + + + PSSubnet + + PSSubnet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewayRequestRoutingRule + + + + + + + New + AzureApplicationGatewayRequestRoutingRule + + + + + + + + New-AzureApplicationGatewayRequestRoutingRule + + Name + + + + String + + + RuleType + + + + String + + + BackendHttpSettingsId + + + + String + + + HttpListenerId + + + + String + + + BackendAddressPoolId + + + + String + + + Profile + + + + AzureProfile + + + + New-AzureApplicationGatewayRequestRoutingRule + + Name + + + + String + + + RuleType + + + + String + + + BackendHttpSettings + + + + PSApplicationGatewayBackendHttpSettings + + + HttpListener + + + + PSApplicationGatewayHttpListener + + + BackendAddressPool + + + + PSApplicationGatewayBackendAddressPool + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + RuleType + + + + String + + String + + + + + + BackendHttpSettingsId + + + + String + + String + + + + + + HttpListenerId + + + + String + + String + + + + + + BackendAddressPoolId + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + BackendHttpSettings + + + + PSApplicationGatewayBackendHttpSettings + + PSApplicationGatewayBackendHttpSettings + + + + + + HttpListener + + + + PSApplicationGatewayHttpListener + + PSApplicationGatewayHttpListener + + + + + + BackendAddressPool + + + + PSApplicationGatewayBackendAddressPool + + PSApplicationGatewayBackendAddressPool + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewaySku + + + + + + + New + AzureApplicationGatewaySku + + + + + + + + New-AzureApplicationGatewaySku + + Name + + + + String + + + Tier + + + + String + + + Capacity + + + + Int32 + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + Tier + + + + String + + String + + + + + + Capacity + + + + Int32 + + Int32 + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureApplicationGatewaySslCertificate + + + + + + + New + AzureApplicationGatewaySslCertificate + + + + + + + + New-AzureApplicationGatewaySslCertificate + + Name + + + + String + + + CertificateFile + + + + String + + + Password + + + + String + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + CertificateFile + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancer + + Create a new Azure Load Balancer + + + + + New + AzureLoadBalancer + + + + Create a new Azure Load Balancer + + + + New-AzureLoadBalancer + + Name + + The name of the Load Balancer. + + String + + + ResourceGroupName + + The name of the Resource Group in which this Load Balancer will be created. + + String + + + Location + + The Region in which this Load Balancer will be created. + + String + + + FrontendIpConfiguration + + A list of Frontend Ips objects to associate with this Load Balancer. + + List`1[PSFrontendIPConfiguration] + + + BackendAddressPool + + A list of Backend Address Pool objects to associate with this Load Balancer + + List`1[PSBackendAddressPool] + + + Probe + + A list of Probe objects to associate with this Load Balancer. + + List`1[PSProbe] + + + InboundNatRule + + A list of Inbound NAT Rules objects to associated with this Load Balancer. + + List`1[PSInboundNatRule] + + + LoadBalancingRule + + A list of Load Balancing Rule objects to associate with this Load Balancer. + + List`1[PSLoadBalancingRule] + + + Tag + + A dictionary of tags to be associated with this Load Balancer. + + Hashtable[] + + + Force + + Forces the creation of the Load Balancer even if a Load Balancer with the same name already exists. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancer. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group in which this Load Balancer will be created. + + String + + String + + + + + + Location + + The Region in which this Load Balancer will be created. + + String + + String + + + + + + FrontendIpConfiguration + + A list of Frontend Ips objects to associate with this Load Balancer. + + List`1[PSFrontendIPConfiguration] + + List`1[PSFrontendIPConfiguration] + + + + + + BackendAddressPool + + A list of Backend Address Pool objects to associate with this Load Balancer + + List`1[PSBackendAddressPool] + + List`1[PSBackendAddressPool] + + + + + + Probe + + A list of Probe objects to associate with this Load Balancer. + + List`1[PSProbe] + + List`1[PSProbe] + + + + + + InboundNatRule + + A list of Inbound NAT Rules objects to associated with this Load Balancer. + + List`1[PSInboundNatRule] + + List`1[PSInboundNatRule] + + + + + + LoadBalancingRule + + A list of Load Balancing Rule objects to associate with this Load Balancer. + + List`1[PSLoadBalancingRule] + + List`1[PSLoadBalancingRule] + + + + + + Tag + + A dictionary of tags to be associated with this Load Balancer. + + Hashtable[] + + Hashtable[] + + + + + + Force + + Forces the creation of the Load Balancer even if a Load Balancer with the same name already exists. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + New-AzureResourceGroup ` + -Name 'SampleRG' ` + -Location "West US" + +$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 + +$vnet = New-AzurevirtualNetwork ` + -Name SampleVNet ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -AddressPrefix 10.0.0.0/16 ` + -Subnet $frontendSubnet,$backendSubnet + +$backendNic = New-AzureNetworkInterface ` + -Name LB-Nic-BE ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -PrivateIpAddress 10.0.2.4 ` + -Subnet $backendSubnet + +$backendNic2 = New-AzureNetworkInterface ` + -Name LB-Nic2-BE ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -PrivateIpAddress 10.0.2.5 ` + -Subnet $backendSubnet + +$publicIP = New-AzurePublicIpAddress ` + -Name PublicIp ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + –AllocationMethod Dynamic ` + -DomainNameLabel samplelbip + +$frontendIP = New-AzureLoadBalancerFrontendIpConfig ` + -Name LB-Frontend ` + -PublicIpAddress $publicIP + +$backendAddressPool = New-AzureLoadBalancerBackendAddressPoolConfig ` + -Name LB-BEPool ` + +$inboundNatRule = New-AzureLoadBalancerInboundNatRuleConfig ` + -Name LB-InboundNATRule ` + -FrontendIPConfiguration $frontendIP ` + -Protocol Tcp ` + -FrontendPort 3389 ` + -BackendPort 3389 ` + -IdleTimeoutInMinutes 15 + +$probe = New-AzureLoadBalancerProbeConfig ` + -Name LB-Probe ` + -RequestPath healthcheck.aspx ` + -Protocol http ` + -Port 80 ` + -IntervalInSeconds 15 ` + -ProbeCount 2 + +$lbrule = New-AzureLoadBalancerRuleConfig ` + -Name LB-LBRule ` + -FrontendIPConfiguration $frontendIP ` + -BackendAddressPool $backendAddressPool ` + -Probe $probe ` + -Protocol Tcp ` + -FrontendPort 80 ` + -BackendPort 80 ` + -IdleTimeoutInMinutes 15 + +New-AzureLoadBalancer ` + -Name LB ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -FrontendIpConfiguration $frontendIP ` + -BackendAddressPool $backendAddressPool ` + -Probe $probe ` + -InboundNatRule $inboundNatRule ` + -LoadBalancingRule $lbrule + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancerBackendAddressPoolConfig + + Create a new Backend Address Pool for an Azure Load Balancer + + + + + New + AzureLoadBalancerBackendAddressPoolConfig + + + + Create a new Backend Address Pool for an Azure Load Balancer + + + + New-AzureLoadBalancerBackendAddressPoolConfig + + Name + + The name of the Backend Address Pool. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Backend Address Pool. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + BackendIpConfigurationId + + A list of Backend Ip config Id's to associate with this. + + list`1[string] + + list`1[string] + + + + + + BackendIpConfiguration + + A list of Ips to associate with the Backend Address Pool. + + list`1[psnetworkinterfaceipconfiguration] + + list`1[psnetworkinterfaceipconfiguration] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancerFrontendIpConfig + + Create a new Frontend Ip Config for an Azure Load Balancer + + + + + New + AzureLoadBalancerFrontendIpConfig + + + + Create a new Frontend Ip Config for an Azure Load Balancer + + + + New-AzureLoadBalancerFrontendIpConfig + + Name + + The name of the Frontend Ip. + + String + + + PrivateIpAddress + + The private Ip address of the load balancer. + This can be specified only if a subnet is specified + + String + + + SubnetId + + The Id of the Subnet in which this Frontend Ip will be created. + + String + + + PublicIpAddressId + + The Id of the Public Ip Address to associate with this Frontend Ip. + + String + + + Profile + + + + AzureProfile + + + + New-AzureLoadBalancerFrontendIpConfig + + Name + + The name of the Frontend Ip. + + String + + + PrivateIpAddress + + The private Ip address of the load balancer. + This can be specified only if a subnet is specified + + String + + + Subnet + + The Subnet object within which this Frontend Ip will be created. + + PSSubnet + + + PublicIpAddress + + The Public Ip Address object to associate with this Frontend Ip. + + PSPublicIpAddress + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Frontend Ip. + + String + + String + + + + + + PrivateIpAddress + + The private Ip address of the load balancer. + This can be specified only if a subnet is specified + + String + + String + + + + + + SubnetId + + The Id of the Subnet in which this Frontend Ip will be created. + + String + + String + + + + + + PublicIpAddressId + + The Id of the Public Ip Address to associate with this Frontend Ip. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + Subnet + + The Subnet object within which this Frontend Ip will be created. + + PSSubnet + + PSSubnet + + + + + + PublicIpAddress + + The Public Ip Address object to associate with this Frontend Ip. + + PSPublicIpAddress + + PSPublicIpAddress + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancerInboundNatRuleConfig + + Create a new Inbound NAT rule for an Azure Load Balancer + + + + + New + AzureLoadBalancerInboundNatRuleConfig + + + + Create a new Inbound NAT rule for an Azure Load Balancer + + + + New-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Frontend Ip configuration to remove. + + String + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + + String + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + New-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Frontend Ip configuration to remove. + + String + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Frontend Ip configuration to remove. + + String + + String + + + + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Inbound NAT Rule. + + String + + String + + + + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + String + + + + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + Int32 + + + + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer NAT Rule. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + PSFrontendIPConfiguration + + + + + + BackendIpConfigurationId + + The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. + + string + + string + + + + + + BackendIpConfiguration + + The Backend Ip Configuration to associate with this Inbound NAT Rule. + + psnetworkinterfaceipconfiguration + + psnetworkinterfaceipconfiguration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancerProbeConfig + + Create a new Probe Configuration for an Azure Load Balancer + + + + + New + AzureLoadBalancerProbeConfig + + + + Create a new Probe Configuration for an Azure Load Balancer + + + + New-AzureLoadBalancerProbeConfig + + Name + + The name of the Probe configuration. + + String + + + RequestPath + + The path within the load balanced service to probe to determine health. + + String + + + Protocol + + The protocol to use for the probing. + Options: Tcp or Http. + + String + + + Port + + The port on which probes should connect to the load balanced service. + + Int32 + + + IntervalInSeconds + + The interval between probes to each instance of the load balanced service. + + Int32 + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Probe configuration. + + String + + String + + + + + + RequestPath + + The path within the load balanced service to probe to determine health. + + String + + String + + + + + + Protocol + + The protocol to use for the probing. + Options: Tcp or Http. + + String + + String + + + + + + Port + + The port on which probes should connect to the load balanced service. + + Int32 + + Int32 + + + + + + IntervalInSeconds + + The interval between probes to each instance of the load balanced service. + + Int32 + + Int32 + + + + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 + + Int32 + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLoadBalancerRuleConfig + + Create a new Load Balancing Rule for an Azure Load Balancer + + + + + New + AzureLoadBalancerRuleConfig + + + + Create a new Load Balancing Rule for an Azure Load Balancer + + + + New-AzureLoadBalancerRuleConfig + + Name + + The name of the Load Balancing Rule. + + String + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Load Balancer Rule. + + String + + + BackendAddressPoolId + + The Id of a Backend Address Pool to associate with this Load Balancer Rule. + + String + + + ProbeId + + The Id of the Probe to associate with this Load Balancer Rule. + + String + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp + + String + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + New-AzureLoadBalancerRuleConfig + + Name + + The name of the Load Balancing Rule. + + String + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Load Balancer Rule. + + PSFrontendIPConfiguration + + + BackendAddressPool + + The Backend Address Pool to associate with this Load Balancer Rule. + + PSBackendAddressPool + + + Probe + + The Probe to associate with this Load Balancer Rule. + + PSProbe + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp + + String + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Load Balancing Rule. + + String + + String + + + + + + FrontendIpConfigurationId + + A list of Frontend Ip Id's to associate with this Load Balancer Rule. + + String + + String + + + + + + BackendAddressPoolId + + The Id of a Backend Address Pool to associate with this Load Balancer Rule. + + String + + String + + + + + + ProbeId + + The Id of the Probe to associate with this Load Balancer Rule. + + String + + String + + + + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp + + String + + String + + + + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + String + + + + + + EnableFloatingIP + + Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Load Balancer Rule. + + PSFrontendIPConfiguration + + PSFrontendIPConfiguration + + + + + + BackendAddressPool + + The Backend Address Pool to associate with this Load Balancer Rule. + + PSBackendAddressPool + + PSBackendAddressPool + + + + + + Probe + + The Probe to associate with this Load Balancer Rule. + + PSProbe + + PSProbe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureLocalNetworkGateway + + + + + + + New + AzureLocalNetworkGateway + + + + + + + + New-AzureLocalNetworkGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Location + + + + String + + + GatewayIpAddress + + + + String + + + AddressPrefix + + + + List`1[String] + + + Tag + + + + Hashtable[] + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + GatewayIpAddress + + + + String + + String + + + + + + AddressPrefix + + + + List`1[String] + + List`1[String] + + + + + + Tag + + + + Hashtable[] + + Hashtable[] + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureNetworkInterface + + Create a new Network Interface + + + + + New + AzureNetworkInterface + + + + Create a new Network Interface + + + + New-AzureNetworkInterface + + Name + + The name of the Network Interface. + + String + + + ResourceGroupName + + The name of the Resource Group in which this Network Interface will be created. + + String + + + Location + + The Region in which this Network Interface will be created. + + String + + + PrivateIpAddress + + The static Ipv4 Ip address to be assigned to this Network Interface. Optional + + String + + + SubnetId + + The Id of the Subnet resource in which this Network Interface will be created. + + String + + + PublicIpAddressId + + The Id of the Public Ip Address resource to assign to this Network Interface. + + String + + + NetworkSecurityGroupId + + The Network Security Group object containing ACLs that will apply to this NIC. + + String + + + LoadBalancerBackendAddressPoolId + + A reference to a Load Balancer Address Pool to which this NIC will be added. + + List`1[String] + + + LoadBalancerInboundNatRuleId + + A reference to a Load Balancer Inbound Nat Rule to which this NIC will be added. + + List`1[String] + + + IpConfigurationName + + The name of Ip Configuration. + + String + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this NIC. + + List`1[String] + + + InternalDnsNameLabel + + List of DNS servers IP addresses. + + String + + + EnableIPForwarding + + Enables/disable IP forwarding on this Nic. + + SwitchParameter + + + Tag + + A dictionary of tags to be associated with this Network Interface. + + + Hashtable[] + + + Force + + Forces the creation of the Network Interface even if a Network Interface with the same name already exists. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + New-AzureNetworkInterface + + Name + + The name of the Network Interface. + + String + + + ResourceGroupName + + The name of the Resource Group in which this Network Interface will be created. + + String + + + Location + + The Region in which this Network Interface will be created. + + String + + + PrivateIpAddress + + The static Ipv4 Ip address to be assigned to this Network Interface. Optional + + String + + + Subnet + + The Subnet object in which this Network Interface will be created. + + PSSubnet + + + PublicIpAddress + + The Public Ip Address object to assign to this Network Interface. + + PSPublicIpAddress + + + NetworkSecurityGroup + + A reference to a Network Security Group object containing ACLs that will apply to this NIC. + + PSNetworkSecurityGroup + + + LoadBalancerBackendAddressPool + + A Load Balancer Address Pool object to which this NIC will be added. + + List`1[PSBackendAddressPool] + + + LoadBalancerInboundNatRule + + A Load Balancer Inbound Nat Rule object to which this NIC will be added. + + List`1[PSInboundNatRule] + + + IpConfigurationName + + The name of Ip Configuration. + + String + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this NIC. + + List`1[String] + + + InternalDnsNameLabel + + List of DNS servers IP addresses. + + String + + + EnableIPForwarding + + Enables/disable IP forwarding on this Nic. + + SwitchParameter + + + Tag + + A dictionary of tags to be associated with this Network Interface. + + + Hashtable[] + + + Force + + Forces the creation of the Network Interface even if a Network Interface with the same name already exists. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Interface. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group in which this Network Interface will be created. + + String + + String + + + + + + Location + + The Region in which this Network Interface will be created. + + String + + String + + + + + + PrivateIpAddress + + The static Ipv4 Ip address to be assigned to this Network Interface. Optional + + String + + String + + + + + + SubnetId + + The Id of the Subnet resource in which this Network Interface will be created. + + String + + String + + + + + + PublicIpAddressId + + The Id of the Public Ip Address resource to assign to this Network Interface. + + String + + String + + + + + + NetworkSecurityGroupId + + The Network Security Group object containing ACLs that will apply to this NIC. + + String + + String + + + + + + LoadBalancerBackendAddressPoolId + + A reference to a Load Balancer Address Pool to which this NIC will be added. + + List`1[String] + + List`1[String] + + + + + + LoadBalancerInboundNatRuleId + + A reference to a Load Balancer Inbound Nat Rule to which this NIC will be added. + + List`1[String] + + List`1[String] + + + + + + IpConfigurationName + + The name of Ip Configuration. + + String + + String + + + + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this NIC. + + List`1[String] + + List`1[String] + + + + + + InternalDnsNameLabel + + List of DNS servers IP addresses. + + String + + String + + + + + + EnableIPForwarding + + Enables/disable IP forwarding on this Nic. + + SwitchParameter + + SwitchParameter + + + + + + Tag + + A dictionary of tags to be associated with this Network Interface. + + + Hashtable[] + + Hashtable[] + + + + + + Force + + Forces the creation of the Network Interface even if a Network Interface with the same name already exists. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + Subnet + + The Subnet object in which this Network Interface will be created. + + PSSubnet + + PSSubnet + + + + + + PublicIpAddress + + The Public Ip Address object to assign to this Network Interface. + + PSPublicIpAddress + + PSPublicIpAddress + + + + + + NetworkSecurityGroup + + A reference to a Network Security Group object containing ACLs that will apply to this NIC. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + LoadBalancerBackendAddressPool + + A Load Balancer Address Pool object to which this NIC will be added. + + List`1[PSBackendAddressPool] + + List`1[PSBackendAddressPool] + + + + + + LoadBalancerInboundNatRule + + A Load Balancer Inbound Nat Rule object to which this NIC will be added. + + List`1[PSInboundNatRule] + + List`1[PSInboundNatRule] + + + + + + AllocationMethod + + How Ips are assigned to this Network Interface. Options: Static or Dynamic + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + New-AzureResourceGroup ` + -Name 'SampleRG' ` + -Location "West US" + +$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 + +$vnet = New-AzurevirtualNetwork ` + -Name SampleVNet ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -AddressPrefix 10.0.0.0/16 ` + -Subnet $frontendSubnet,$backendSubnet + +$backendNic = New-AzureNetworkInterface ` + -Name LB-Nic-BE ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -PrivateIpAddress 10.0.2.4 ` + -Subnet $backendSubnet + + + + + + + + + + + + + + + + + + + + + + New-AzureNetworkSecurityGroup + + Create a new Network Security Group + + + + + New + AzureNetworkSecurityGroup + + + + Create a new Network Security Group + + + + New-AzureNetworkSecurityGroup + + Name + + The name of the Network Security Group. + + String + + + ResourceGroupName + + The name of the Resource Group in which this Network Security Group will be created. + + String + + + Location + + The Region in which this Network Security Group will be created. + + String + + + SecurityRules + + A list of Network Security Rule objects to create within this Network Security Group. + + List`1[PSSecurityRule] + + + Tag + + A dictionary of tags to be associated with this Network Security Group. + + Hashtable[] + + + Force + + Forces the creation of the Network Security Group even if a Network Security Group with the same name already exists. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Group. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group in which this Network Security Group will be created. + + String + + String + + + + + + Location + + The Region in which this Network Security Group will be created. + + String + + String + + + + + + SecurityRules + + A list of Network Security Rule objects to create within this Network Security Group. + + List`1[PSSecurityRule] + + List`1[PSSecurityRule] + + + + + + Tag + + A dictionary of tags to be associated with this Network Security Group. + + Hashtable[] + + Hashtable[] + + + + + + Force + + Forces the creation of the Network Security Group even if a Network Security Group with the same name already exists. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureNetworkSecurityRuleConfig + + Create a new Network Security Rule within a Network Security Group + + + + + New + AzureNetworkSecurityRuleConfig + + + + Create a new Network Security Rule within a Network Security Group + + + + New-AzureNetworkSecurityRuleConfig + + Name + + The name of the Network Security Rule. + + String + + + Description + + The description of the Network Security Rule. + + String + + + Protocol + + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + + String + + + SourcePortRange + + Source Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + + DestinationPortRange + + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + + SourceAddressPrefix + + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + DestinationAddressPrefix + + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + Access + + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + + String + + + Priority + + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + + Int32 + + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Rule. + + String + + String + + + + + + Description + + The description of the Network Security Rule. + + String + + String + + + + + + Protocol + + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + + String + + String + + + + + + SourcePortRange + + Source Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + String + + + + + + DestinationPortRange + + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + + String + + String + + + + + + SourceAddressPrefix + + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + String + + + + + + DestinationAddressPrefix + + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + String + + + + + + Access + + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + + String + + String + + + + + + Priority + + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + + Int32 + + Int32 + + + + + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzurePublicIpAddress + + Create a new Public Ip Address + + + + + New + AzurePublicIpAddress + + + + Create a new Public Ip Address + + + + New-AzurePublicIpAddress + + Name + + The name of the Public Ip Address. + + String + + + ResourceGroupName + + The name of the Resource Group in which this Public Ip Address will be created. + + String + + + Location + + The Region in which this Public Ip Address will be created. + + String + + + AllocationMethod + + How Ips are assigned to this Public Ip Address. + Options: Static or Dynamic + + String + + + DomainNameLabel + + The relative Dns name for this Public Ip Address. + + String + + + ReverseFqdn + + The Dns Fqdn that you wish to associate with this Public Ip Address. + + String + + + IdleTimeoutInMinutes + + Specifies the timeout for the Tcp idle connection + + Int32 + + + Tag + + A dictionary of tags to be associated with this Public Ip Address. + + Hashtable[] + + + Force + + Force the creation of this Public Ip Address possibly overwriting an existing Public Ip Address. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Public Ip Address. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group in which this Public Ip Address will be created. + + String + + String + + + + + + Location + + The Region in which this Public Ip Address will be created. + + String + + String + + + + + + AllocationMethod + + How Ips are assigned to this Public Ip Address. + Options: Static or Dynamic + + String + + String + + + + + + DomainNameLabel + + The relative Dns name for this Public Ip Address. + + String + + String + + + + + + ReverseFqdn + + The Dns Fqdn that you wish to associate with this Public Ip Address. + + String + + String + + + + + + IdleTimeoutInMinutes + + Specifies the timeout for the Tcp idle connection + + Int32 + + Int32 + + + + + + Tag + + A dictionary of tags to be associated with this Public Ip Address. + + Hashtable[] + + Hashtable[] + + + + + + Force + + Force the creation of this Public Ip Address possibly overwriting an existing Public Ip Address. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + New-AzureResourceGroup ` + -Name 'SampleRG' ` + -Location "West US" + +$publicIP = New-AzurePublicIpAddress ` + -Name PublicIp ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + –AllocationMethod Dynamic ` + -DomainNameLabel samplelbip + + + + + + + + + + + + + + + + + + + + + + New-AzureRouteConfig + + Creates a Route for a Route Table + + + + + New + AzureRouteConfig + + + + Creates a Route for a Route Table + + + + New-AzureRouteConfig + + Name + + Name of the Route + + String + + + AddressPrefix + + The destination CIDR to which the route applies, such as 10.1.0.0/16 + + String + + + NextHopType + + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. + + + String + + + NextHopIpAddress + + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + Name of the Route + + String + + String + + + + + + AddressPrefix + + The destination CIDR to which the route applies, such as 10.1.0.0/16 + + String + + String + + + + + + NextHopType + + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. + + + String + + String + + + + + + NextHopIpAddress + + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRouteTable + + Create a new Route Table + + + + + New + AzureRouteTable + + + + Create a new Route Table + + + + New-AzureRouteTable + + Name + + The name of the Route Table + + String + + + ResourceGroupName + + The name of the Resource Group in which this Route Table will be created + + String + + + Location + + The Region in which this Route Table will be created. + + String + + + Route + + A list of Route objects to associate with this Route Table. + + List`1[PSRoute] + + + Tag + + A dictionary of tags to be associated with this Network Interface. + + Hashtable[] + + + Force + + Forces the creation of the Route Table even if a Network Interface with the same name already exists. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Route Table + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group in which this Route Table will be created + + String + + String + + + + + + Location + + The Region in which this Route Table will be created. + + String + + String + + + + + + Route + + A list of Route objects to associate with this Route Table. + + List`1[PSRoute] + + List`1[PSRoute] + + + + + + Tag + + A dictionary of tags to be associated with this Network Interface. + + Hashtable[] + + Hashtable[] + + + + + + Force + + Forces the creation of the Route Table even if a Network Interface with the same name already exists. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureVirtualNetwork + + Create a new Virtual Network + + + + + New + AzureVirtualNetwork + + + + Create a new Virtual Network + + + + New-AzureVirtualNetwork + + Name + + The name of the Virtual Network. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Virtual Network. + + String + + + Location + + The Region in which this Virtual Network will be created. + + String + + + AddressPrefix + + A list of Ip ranges covered by this Virtual Network. + + List`1[String] + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this Virtual Network. + + List`1[String] + + + Subnet + + A list of Subnets associated with this Virtual Network. + + List`1[PSSubnet] + + + Tag + + A dictionary of tags to be associated with this Virtual Network. + + Hashtable[] + + + Force + + Force the creation of this Virtual Network possibly overwriting an existing Virtual Network. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Virtual Network. + + String + + String + + + + + + ResourceGroupName + + The name of the Resource Group containing the Virtual Network. + + String + + String + + + + + + Location + + The Region in which this Virtual Network will be created. + + String + + String + + + + + + AddressPrefix + + A list of Ip ranges covered by this Virtual Network. + + List`1[String] + + List`1[String] + + + + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this Virtual Network. + + List`1[String] + + List`1[String] + + + + + + Subnet + + A list of Subnets associated with this Virtual Network. + + List`1[PSSubnet] + + List`1[PSSubnet] + + + + + + Tag + + A dictionary of tags to be associated with this Virtual Network. + + Hashtable[] + + Hashtable[] + + + + + + Force + + Force the creation of this Virtual Network possibly overwriting an existing Virtual Network. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + New-AzureResourceGroup ` + -Name 'SampleRG' ` + -Location "West US" + +$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 + +$vnet = New-AzurevirtualNetwork ` + -Name SampleVNet ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -AddressPrefix 10.0.0.0/16 ` + -Subnet $frontendSubnet,$backendSubnet + + + + + + + + + + + + + + + + + + + + + + New-AzureVirtualNetworkGateway + + + + + + + New + AzureVirtualNetworkGateway + + + + + + + + New-AzureVirtualNetworkGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Location + + + + String + + + IpConfigurations + + + + List`1[PSVirtualNetworkGatewayIpConfiguration] + + + GatewayType + + + + String + + + VpnType + + + + String + + + EnableBgp + + + + Boolean + + + Tag + + + + Hashtable[] + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + IpConfigurations + + + + List`1[PSVirtualNetworkGatewayIpConfiguration] + + List`1[PSVirtualNetworkGatewayIpConfiguration] + + + + + + GatewayType + + + + String + + String + + + + + + VpnType + + + + String + + String + + + + + + EnableBgp + + + + Boolean + + Boolean + + + + + + Tag + + + + Hashtable[] + + Hashtable[] + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureVirtualNetworkGatewayConnection + + + + + + + New + AzureVirtualNetworkGatewayConnection + + + + + + + + New-AzureVirtualNetworkGatewayConnection + + Name + + + + String + + + ResourceGroupName + + + + String + + + Location + + + + String + + + VirtualNetworkGateway1 + + + + PSVirtualNetworkGateway + + + VirtualNetworkGateway2 + + + + PSVirtualNetworkGateway + + + LocalNetworkGateway2 + + + + PSLocalNetworkGateway + + + ConnectionType + + + + String + + + RoutingWeight + + + + Int32 + + + SharedKey + + + + String + + + Tag + + + + Hashtable[] + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + VirtualNetworkGateway1 + + + + PSVirtualNetworkGateway + + PSVirtualNetworkGateway + + + + + + VirtualNetworkGateway2 + + + + PSVirtualNetworkGateway + + PSVirtualNetworkGateway + + + + + + LocalNetworkGateway2 + + + + PSLocalNetworkGateway + + PSLocalNetworkGateway + + + + + + ConnectionType + + + + String + + String + + + + + + RoutingWeight + + + + Int32 + + Int32 + + + + + + SharedKey + + + + String + + String + + + + + + Tag + + + + Hashtable[] + + Hashtable[] + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureVirtualNetworkGatewayIpConfig + + + + + + + New + AzureVirtualNetworkGatewayIpConfig + + + + + + + + New-AzureVirtualNetworkGatewayIpConfig + + Name + + + + String + + + PrivateIpAddress + + + + String + + + SubnetId + + + + String + + + PublicIpAddressId + + + + String + + + Profile + + + + AzureProfile + + + + New-AzureVirtualNetworkGatewayIpConfig + + Name + + + + String + + + PrivateIpAddress + + + + String + + + Subnet + + + + PSSubnet + + + PublicIpAddress + + + + PSPublicIpAddress + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + PrivateIpAddress + + + + String + + String + + + + + + SubnetId + + + + String + + String + + + + + + PublicIpAddressId + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + Subnet + + + + PSSubnet + + PSSubnet + + + + + + PublicIpAddress + + + + PSPublicIpAddress + + PSPublicIpAddress + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureVirtualNetworkSubnetConfig + + Create a new Virtual Network Subnet + + + + + New + AzureVirtualNetworkSubnetConfig + + + + Create a new Virtual Network Subnet + + + + New-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet. + + String + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + + NetworkSecurityGroup + + The Network Security Group object containing ACLs that will apply to this Subnet. + + PSNetworkSecurityGroup + + + RouteTable + + The Route Table object containing Routes that will apply to this Subnet. + + PSRouteTable + + + Profile + + + + AzureProfile + + + + New-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet. + + String + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + + NetworkSecurityGroupId + + A reference to a Network Security Group containing ACLs that will apply to this Subnet. + + String + + + RouteTableId + + A reference to a Route Table object containing Routes that will apply to this Subnet. + + String + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Subnet. + + String + + String + + + + + + AddressPrefix + + The Ip range covered by this Subnet. + + String + + String + + + + + + NetworkSecurityGroup + + The Network Security Group object containing ACLs that will apply to this Subnet. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + RouteTable + + The Route Table object containing Routes that will apply to this Subnet. + + PSRouteTable + + PSRouteTable + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + NetworkSecurityGroupId + + A reference to a Network Security Group containing ACLs that will apply to this Subnet. + + String + + String + + + + + + RouteTableId + + A reference to a Route Table object containing Routes that will apply to this Subnet. + + String + + String + + + + + + DnsServer + + The Dns servers to be used for performing Dns lookups from this Subnet. + + list`1[string] + + list`1[string] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + New-AzureResourceGroup ` + -Name 'SampleRG' ` + -Location "West US" + +$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 + +$vnet = New-AzurevirtualNetwork ` + -Name SampleVNet ` + -ResourceGroupName SampleRG ` + -Location "West US" ` + -AddressPrefix 10.0.0.0/16 ` + -Subnet $frontendSubnet,$backendSubnet + + + + + + + + + + + + + + + + + + + + + + Remove-AzureApplicationGateway + + + + + + + Remove + AzureApplicationGateway + + + + + + + + Remove-AzureApplicationGateway + + Name + + + + String + + + ResourceGroupName + + + + String + + + Force + + + + SwitchParameter + + + PassThru + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + PassThru + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureApplicationGatewayBackendAddressPool + + - Get - AzureLoadBalancerProbeConfig + Remove + AzureApplicationGatewayBackendAddressPool - Retrieve a single Probe configuration or a list of Probe configurations within a Load Balancer + - Get-AzureLoadBalancerProbeConfig - + Remove-AzureApplicationGatewayBackendAddressPool + Name - The name of the probe configuration to retrieve. + String - LoadBalancer + ApplicationGateway - The name of the Load Balancer containing the probe configuration. + - PSLoadBalancer + PSApplicationGateway Profile @@ -2682,10 +14295,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the probe configuration to retrieve. + String @@ -2695,13 +14308,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - LoadBalancer + ApplicationGateway - The name of the Load Balancer containing the probe configuration. + - PSLoadBalancer + PSApplicationGateway - PSLoadBalancer + PSApplicationGateway @@ -2727,8 +14340,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2740,8 +14352,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2761,36 +14372,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureLoadBalancerRuleConfig + Remove-AzureApplicationGatewayBackendHttpSettings - Retrieve a single Load Balancer Rule or a list of Load Balancer Rules within a Load Balancer + - Get - AzureLoadBalancerRuleConfig + Remove + AzureApplicationGatewayBackendHttpSettings - Retrieve a single Load Balancer Rule or a list of Load Balancer Rules within a Load Balancer + - Get-AzureLoadBalancerRuleConfig - + Remove-AzureApplicationGatewayBackendHttpSettings + Name - The name of the Load Balancer Rule to retrieve. + String - LoadBalancer + ApplicationGateway - The name of the Load Balancer containing the Load Balancer Rule. + - PSLoadBalancer + PSApplicationGateway Profile @@ -2802,10 +14413,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Load Balancer Rule to retrieve. + String @@ -2815,13 +14426,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - LoadBalancer + ApplicationGateway - The name of the Load Balancer containing the Load Balancer Rule. + - PSLoadBalancer + PSApplicationGateway - PSLoadBalancer + PSApplicationGateway @@ -2847,8 +14458,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2860,8 +14470,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2881,36 +14490,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureNetworkInterface + Remove-AzureApplicationGatewayFrontendIPConfig - Retrieve a single Network Interface or a list of Network Interfaces within a Resource Group + - Get - AzureNetworkInterface + Remove + AzureApplicationGatewayFrontendIPConfig - Retrieve a single Network Interface or a list of Network Interfaces within a Resource Group + - Get-AzureNetworkInterface - + Remove-AzureApplicationGatewayFrontendIPConfig + Name - The name of the Network Interface to retrieve. + String - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Network Interface + - String + PSApplicationGateway Profile @@ -2922,10 +14531,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Network Interface to retrieve. + String @@ -2934,14 +14543,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Network Interface + - String + PSApplicationGateway - String + PSApplicationGateway @@ -2967,8 +14576,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -2980,8 +14588,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3001,37 +14608,37 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureNetworkSecurityGroup + Remove-AzureApplicationGatewayFrontendPort - Get an existing Network Security Group. + - Get - AzureNetworkSecurityGroup + Remove + AzureApplicationGatewayFrontendPort - Get an existing Network Security Group. + - Get-AzureNetworkSecurityGroup - + Remove-AzureApplicationGatewayFrontendPort + Name - The name of the Network Security Group to retrieve. - - String - - - ResourceGroupName - - The name of the Resource Group containing the Network Security Group. + String + + ApplicationGateway + + + + PSApplicationGateway + Profile @@ -3042,10 +14649,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Network Security Group to retrieve. + String @@ -3054,14 +14661,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Network Security Group. + - String + PSApplicationGateway - String + PSApplicationGateway @@ -3119,43 +14726,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureNetworkSecurityRuleConfig + Remove-AzureApplicationGatewayHttpListener - Get an existing Network Security Rule within a Network Security Group. + - Get - AzureNetworkSecurityRuleConfig + Remove + AzureApplicationGatewayHttpListener - Get an existing Network Security Rule within a Network Security Group. + - Get-AzureNetworkSecurityRuleConfig - + Remove-AzureApplicationGatewayHttpListener + Name - The name of the Network Security Rule to retrieve. + String - NetworkSecurityGroup - - The Network Security Group object containing the Network Security Rule to retrieve. - - PSNetworkSecurityGroup - - - DefaultRules + ApplicationGateway - Switch on whether to get user-created rules, or default rules. + - SwitchParameter + PSApplicationGateway Profile @@ -3167,10 +14767,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Network Security Rule to retrieve. + String @@ -3180,25 +14780,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - NetworkSecurityGroup - - The Network Security Group object containing the Network Security Rule to retrieve. - - PSNetworkSecurityGroup - - PSNetworkSecurityGroup - - - - - - DefaultRules + ApplicationGateway - Switch on whether to get user-created rules, or default rules. + - SwitchParameter + PSApplicationGateway - SwitchParameter + PSApplicationGateway @@ -3256,36 +14844,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzurePublicIpAddress + Remove-AzureApplicationGatewayIPConfiguration - Retrieve a single Public Ip Address or a list of Public Ip Addresses within a Resource Group + - Get - AzurePublicIpAddress + Remove + AzureApplicationGatewayIPConfiguration - Retrieve a single Public Ip Address or a list of Public Ip Addresses within a Resource Group + - Get-AzurePublicIpAddress - + Remove-AzureApplicationGatewayIPConfiguration + Name - The name of the Public Ip Address to retrieve. + String - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Public Ip Address. + - String + PSApplicationGateway Profile @@ -3297,10 +14885,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Public Ip Address to retrieve. + String @@ -3309,14 +14897,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Public Ip Address. + - String + PSApplicationGateway - String + PSApplicationGateway @@ -3342,8 +14930,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3355,8 +14942,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3376,36 +14962,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureVirtualNetwork + Remove-AzureApplicationGatewayRequestRoutingRule - Retrieve a single Virtual Network or a list of Virtual Networks within a Resource Group + - Get - AzureVirtualNetwork + Remove + AzureApplicationGatewayRequestRoutingRule - Retrieve a single Virtual Network or a list of Virtual Networks within a Resource Group + - Get-AzureVirtualNetwork - + Remove-AzureApplicationGatewayRequestRoutingRule + Name - The name of the Virtual Network to retrieve. + String - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Virtual Network + - String + PSApplicationGateway Profile @@ -3417,10 +15003,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Virtual Network to retrieve. + String @@ -3429,14 +15015,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ResourceGroupName + + ApplicationGateway - The name of the Resource Group containing the Virtual Network + - String + PSApplicationGateway - String + PSApplicationGateway @@ -3462,8 +15048,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3475,8 +15060,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3496,36 +15080,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Get-AzureVirtualNetworkSubnetConfig + Remove-AzureApplicationGatewaySslCertificate - Retrieve a single Subnet or a list of Subnets within a Virtual Network + - Get - AzureVirtualNetworkSubnetConfig + Remove + AzureApplicationGatewaySslCertificate - Retrieve a single Subnet or a list of Subnets within a Virtual Network + - Get-AzureVirtualNetworkSubnetConfig - + Remove-AzureApplicationGatewaySslCertificate + Name - The name of the Subnet to retrieve. + String - VirtualNetwork + ApplicationGateway - The Virtual Network containing the Subnet. + - PSVirtualNetwork + PSApplicationGateway Profile @@ -3537,10 +15121,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Subnet to retrieve. + String @@ -3550,13 +15134,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - VirtualNetwork + ApplicationGateway - The Virtual Network containing the Subnet. + - PSVirtualNetwork + PSApplicationGateway - PSVirtualNetwork + PSApplicationGateway @@ -3582,8 +15166,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3595,8 +15178,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -3613,94 +15195,51 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - New-AzureLoadBalancer + Remove-AzureLoadBalancer - Create a new Azure Load Balancer + Remove an Azure Load Balancer - New + Remove AzureLoadBalancer - Create a new Azure Load Balancer + Remove an Azure Load Balancer - New-AzureLoadBalancer + Remove-AzureLoadBalancer Name - The name of the Load Balancer. + The name of the Load Balancer to remove. String ResourceGroupName - The name of the Resource Group in which this Load Balancer will be created. - - String - - - Location - - The Region in which this Load Balancer will be created. + The name of the Resource Group containing the Load Balancer. String - - FrontendIpConfiguration - - A list of Frontend Ips objects to associate with this Load Balancer. - - List`1[PSFrontendIPConfiguration] - - - BackendAddressPool - - A list of Backend Address Pool objects to associate with this Load Balancer - - List`1[PSBackendAddressPool] - - - Probe - - A list of Probe objects to associate with this Load Balancer. - - List`1[PSProbe] - - - InboundNatRule - - A list of Inbound NAT Rules objects to associated with this Load Balancer. - - List`1[PSInboundNatRule] - - - LoadBalancingRule - - A list of Load Balancing Rule objects to associate with this Load Balancer. - - List`1[PSLoadBalancingRule] - - - Tag + + Force - A dictionary of tags to be associated with this Load Balancer. + Forces the deletion of the Load Balancer regardless of whether resources are assigned to it. - Hashtable[] + SwitchParameter - Force + PassThru - Forces the creation of the Load Balancer even if a Load Balancer with the same name already exists. + Indicate if an object should be returned. Returns true if remove is successful. SwitchParameter @@ -3717,31 +15256,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map Name - The name of the Load Balancer. - - String - - String - - - - - - ResourceGroupName - - The name of the Resource Group in which this Load Balancer will be created. - - String - - String - - - - - - Location - - The Region in which this Load Balancer will be created. + The name of the Load Balancer to remove. String @@ -3750,86 +15265,158 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - FrontendIpConfiguration + + ResourceGroupName - A list of Frontend Ips objects to associate with this Load Balancer. + The name of the Resource Group containing the Load Balancer. - List`1[PSFrontendIPConfiguration] + String - List`1[PSFrontendIPConfiguration] + String - - BackendAddressPool + + Force - A list of Backend Address Pool objects to associate with this Load Balancer + Forces the deletion of the Load Balancer regardless of whether resources are assigned to it. - List`1[PSBackendAddressPool] + SwitchParameter - List`1[PSBackendAddressPool] + SwitchParameter - - Probe + + PassThru - A list of Probe objects to associate with this Load Balancer. + Indicate if an object should be returned. Returns true if remove is successful. - List`1[PSProbe] + SwitchParameter - List`1[PSProbe] + SwitchParameter - - InboundNatRule + + Profile - A list of Inbound NAT Rules objects to associated with this Load Balancer. + - List`1[PSInboundNatRule] + AzureProfile - List`1[PSInboundNatRule] + AzureProfile - - LoadBalancingRule + + + + + + + + - A list of Load Balancing Rule objects to associate with this Load Balancer. + + - List`1[PSLoadBalancingRule] + + + + - List`1[PSLoadBalancingRule] - + + + - - - - Tag - A dictionary of tags to be associated with this Load Balancer. + + - Hashtable[] + + + + + + + + + + + + + + + + + + + Remove-AzureLoadBalancerBackendAddressPoolConfig + + Remove a Backend Address Pool + + + + + Remove + AzureLoadBalancerBackendAddressPoolConfig + + + + Remove a Backend Address Pool + + + + Remove-AzureLoadBalancerBackendAddressPoolConfig + + Name + + The Load Balancer containing the Backend Address Pool. + + String + + + LoadBalancer + + The name of the Backend Address Pool to remove. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + + + Name + + The Load Balancer containing the Backend Address Pool. + + String - Hashtable[] + String - - Force + + LoadBalancer - Forces the creation of the Load Balancer even if a Load Balancer with the same name already exists. + The name of the Backend Address Pool to remove. - SwitchParameter + PSLoadBalancer - SwitchParameter + PSLoadBalancer @@ -3869,114 +15456,19 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - New-AzureResourceGroup ` - -Name 'SampleRG' ` - -Location "West US" - -$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 - -$vnet = New-AzurevirtualNetwork ` - -Name SampleVNet ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -AddressPrefix 10.0.0.0/16 ` - -Subnet $frontendSubnet,$backendSubnet - -$backendNic = New-AzureNetworkInterface ` - -Name LB-Nic-BE ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -PrivateIpAddress 10.0.2.4 ` - -Subnet $backendSubnet - -$backendNic2 = New-AzureNetworkInterface ` - -Name LB-Nic2-BE ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -PrivateIpAddress 10.0.2.5 ` - -Subnet $backendSubnet - -$publicIP = New-AzurePublicIpAddress ` - -Name PublicIp ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - –AllocationMethod Dynamic ` - -DomainNameLabel samplelbip - -$frontendIP = New-AzureLoadBalancerFrontendIpConfig ` - -Name LB-Frontend ` - -PublicIpAddress $publicIP - -$backendAddressPool = New-AzureLoadBalancerBackendAddressPoolConfig ` - -Name LB-BEPool ` - -$inboundNatRule = New-AzureLoadBalancerInboundNatRuleConfig ` - -Name LB-InboundNATRule ` - -FrontendIPConfiguration $frontendIP ` - -Protocol Tcp ` - -FrontendPort 3389 ` - -BackendPort 3389 ` - -IdleTimeoutInMinutes 15 - -$probe = New-AzureLoadBalancerProbeConfig ` - -Name LB-Probe ` - -RequestPath healthcheck.aspx ` - -Protocol http ` - -Port 80 ` - -IntervalInSeconds 15 ` - -ProbeCount 2 - -$lbrule = New-AzureLoadBalancerRuleConfig ` - -Name LB-LBRule ` - -FrontendIPConfiguration $frontendIP ` - -BackendAddressPool $backendAddressPool ` - -Probe $probe ` - -Protocol Tcp ` - -FrontendPort 80 ` - -BackendPort 80 ` - -IdleTimeoutInMinutes 15 - -New-AzureLoadBalancer ` - -Name LB ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -FrontendIpConfiguration $frontendIP ` - -BackendAddressPool $backendAddressPool ` - -Probe $probe ` - -InboundNatRule $inboundNatRule ` - -LoadBalancingRule $lbrule - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -3984,30 +15476,37 @@ New-AzureLoadBalancer ` - New-AzureLoadBalancerBackendAddressPoolConfig + Remove-AzureLoadBalancerFrontendIpConfig - Create a new Backend Address Pool for an Azure Load Balancer + Remove a Frontend Ip configuration - New - AzureLoadBalancerBackendAddressPoolConfig + Remove + AzureLoadBalancerFrontendIpConfig - Create a new Backend Address Pool for an Azure Load Balancer + Remove a Frontend Ip configuration - New-AzureLoadBalancerBackendAddressPoolConfig - + Remove-AzureLoadBalancerFrontendIpConfig + Name - The name of the Backend Address Pool. + The name of the Frontend Ip configuration to remove. String + + LoadBalancer + + The Load Balancer containing the Frontend Ip configuration. + + PSLoadBalancer + Profile @@ -4018,10 +15517,10 @@ New-AzureLoadBalancer ` - + Name - The name of the Backend Address Pool. + The name of the Frontend Ip configuration to remove. String @@ -4030,38 +15529,26 @@ New-AzureLoadBalancer ` - - Profile - - - - AzureProfile - - AzureProfile - - - - - - BackendIpConfigurationId + + LoadBalancer - A list of Backend Ip config Id's to associate with this. + The Load Balancer containing the Frontend Ip configuration. - list`1[string] + PSLoadBalancer - list`1[string] + PSLoadBalancer - BackendIpConfiguration + Profile - A list of Ips to associate with the Backend Address Pool. + - list`1[psnetworkinterfaceipconfiguration] + AzureProfile - list`1[psnetworkinterfaceipconfiguration] + AzureProfile @@ -4109,90 +15596,36 @@ New-AzureLoadBalancer ` - New-AzureLoadBalancerFrontendIpConfig + Remove-AzureLoadBalancerInboundNatRuleConfig - Create a new Frontend Ip Config for an Azure Load Balancer + Remove an Inbound NAT Rule - New - AzureLoadBalancerFrontendIpConfig + Remove + AzureLoadBalancerInboundNatRuleConfig - Create a new Frontend Ip Config for an Azure Load Balancer + Remove an Inbound NAT Rule - New-AzureLoadBalancerFrontendIpConfig - - Name - - The name of the Frontend Ip. - - String - - - PrivateIpAddress - - The private Ip address of the load balancer. - This can be specified only if a subnet is specified - - String - - - SubnetId - - The Id of the Subnet in which this Frontend Ip will be created. - - String - - - PublicIpAddressId - - The Id of the Public Ip Address to associate with this Frontend Ip. - - String - + Remove-AzureLoadBalancerInboundNatRuleConfig - Profile - - - - AzureProfile - - - - New-AzureLoadBalancerFrontendIpConfig - Name - The name of the Frontend Ip. - - String - - - PrivateIpAddress - - The private Ip address of the load balancer. - This can be specified only if a subnet is specified + The name of the Inbound NAT Rule to remove. String - - Subnet - - The Subnet object within which this Frontend Ip will be created. - - PSSubnet - - - PublicIpAddress + + LoadBalancer - The Public Ip Address object to associate with this Frontend Ip. + The Load Balancer containing the Inbound NAT Rule. - PSPublicIpAddress + PSLoadBalancer Profile @@ -4204,10 +15637,10 @@ New-AzureLoadBalancer ` - + Name - The name of the Frontend Ip. + The name of the Inbound NAT Rule to remove. String @@ -4216,75 +15649,146 @@ New-AzureLoadBalancer ` - - PrivateIpAddress + + LoadBalancer - The private Ip address of the load balancer. - This can be specified only if a subnet is specified + The Load Balancer containing the Inbound NAT Rule. - String + PSLoadBalancer - String + PSLoadBalancer - SubnetId + Profile - The Id of the Subnet in which this Frontend Ip will be created. + - String + AzureProfile - String + AzureProfile - - PublicIpAddressId + + + + + + + + - The Id of the Public Ip Address to associate with this Frontend Ip. + + - String + + + + - String - + + + - - + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureLoadBalancerProbeConfig + + Remove a Probe configuration + + + + + Remove + AzureLoadBalancerProbeConfig + + + + Remove a Probe configuration + + + + Remove-AzureLoadBalancerProbeConfig + + Name + + The name of the probe configuration to remove. + + String + + + LoadBalancer + + The Load Balancer containing the probe configuration. + + PSLoadBalancer + + + Profile + + + + AzureProfile + + + + - Profile + Name - + The name of the probe configuration to remove. - AzureProfile + String - AzureProfile + String - - Subnet + + LoadBalancer - The Subnet object within which this Frontend Ip will be created. + The Load Balancer containing the probe configuration. - PSSubnet + PSLoadBalancer - PSSubnet + PSLoadBalancer - PublicIpAddress + Profile - The Public Ip Address object to associate with this Frontend Ip. + - PSPublicIpAddress + AzureProfile - PSPublicIpAddress + AzureProfile @@ -4332,132 +15836,36 @@ New-AzureLoadBalancer ` - New-AzureLoadBalancerInboundNatRuleConfig + Remove-AzureLoadBalancerRuleConfig - Create a new Inbound NAT rule for an Azure Load Balancer + Remove a Load Balancer Rule - New - AzureLoadBalancerInboundNatRuleConfig + Remove + AzureLoadBalancerRuleConfig - Create a new Inbound NAT rule for an Azure Load Balancer + Remove a Load Balancer Rule - New-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Frontend Ip configuration to remove. - - String - - - FrontendIpConfigurationId - - A list of Frontend Ip Id's to associate with this Inbound NAT Rule. - - String - - - Protocol - - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. - - String - - - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - - EnableFloatingIP - - Enables Direct Server Return for this Load Balancer NAT Rule. - - SwitchParameter - + Remove-AzureLoadBalancerRuleConfig - Profile - - - - AzureProfile - - - - New-AzureLoadBalancerInboundNatRuleConfig - Name - The name of the Frontend Ip configuration to remove. - - String - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. - - PSFrontendIPConfiguration - - - Protocol - - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + The name of the Load Balancer Rule to remove. String - - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - - EnableFloatingIP + + LoadBalancer - Enables Direct Server Return for this Load Balancer NAT Rule. + The Load Balancer containing the Load Balancer Rule. - SwitchParameter + PSLoadBalancer Profile @@ -4469,35 +15877,10 @@ New-AzureLoadBalancer ` - - Name - - The name of the Frontend Ip configuration to remove. - - String - - String - - - - - - FrontendIpConfigurationId - - A list of Frontend Ip Id's to associate with this Inbound NAT Rule. - - String - - String - - - - - Protocol + Name - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + The name of the Load Balancer Rule to remove. String @@ -4506,50 +15889,14 @@ New-AzureLoadBalancer ` - - FrontendPort - - The frontend port matched by this rule. - - Int32 - - Int32 - - - - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - Int32 - - - - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - Int32 - - - - - - EnableFloatingIP + + LoadBalancer - Enables Direct Server Return for this Load Balancer NAT Rule. + The Load Balancer containing the Load Balancer Rule. - SwitchParameter + PSLoadBalancer - SwitchParameter + PSLoadBalancer @@ -4557,47 +15904,11 @@ New-AzureLoadBalancer ` Profile - - - AzureProfile - - AzureProfile - - - - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. - - PSFrontendIPConfiguration - - PSFrontendIPConfiguration - - - - - - BackendIpConfigurationId - - The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. - - string - - string - - - - - - BackendIpConfiguration - - The Backend Ip Configuration to associate with this Inbound NAT Rule. + - psnetworkinterfaceipconfiguration + AzureProfile - psnetworkinterfaceipconfiguration + AzureProfile @@ -4645,65 +15956,50 @@ New-AzureLoadBalancer ` - New-AzureLoadBalancerProbeConfig + Remove-AzureLocalNetworkGateway - Create a new Probe Configuration for an Azure Load Balancer + - New - AzureLoadBalancerProbeConfig + Remove + AzureLocalNetworkGateway - Create a new Probe Configuration for an Azure Load Balancer + - New-AzureLoadBalancerProbeConfig - + Remove-AzureLocalNetworkGateway + Name - The name of the Probe configuration. + String - - RequestPath + + ResourceGroupName - The path within the load balanced service to probe to determine health. + String - Protocol - - The protocol to use for the probing. - Options: Tcp or Http. - - String - - - Port - - The port on which probes should connect to the load balanced service. - - Int32 - - - IntervalInSeconds + Force - The interval between probes to each instance of the load balanced service. + - Int32 + SwitchParameter - - ProbeCount + + PassThru - The number of per-instance consecutive failures for an instance to be considered unhealthy. + - Int32 + SwitchParameter Profile @@ -4715,10 +16011,10 @@ New-AzureLoadBalancer ` - + Name - The name of the Probe configuration. + String @@ -4727,10 +16023,10 @@ New-AzureLoadBalancer ` - - RequestPath + + ResourceGroupName - The path within the load balanced service to probe to determine health. + String @@ -4740,50 +16036,25 @@ New-AzureLoadBalancer ` - Protocol - - The protocol to use for the probing. - Options: Tcp or Http. - - String - - String - - - - - - Port - - The port on which probes should connect to the load balanced service. - - Int32 - - Int32 - - - - - - IntervalInSeconds + Force - The interval between probes to each instance of the load balanced service. + - Int32 + SwitchParameter - Int32 + SwitchParameter - - ProbeCount + + PassThru - The number of per-instance consecutive failures for an instance to be considered unhealthy. + - Int32 + SwitchParameter - Int32 + SwitchParameter @@ -4809,8 +16080,7 @@ New-AzureLoadBalancer ` - - + @@ -4822,8 +16092,7 @@ New-AzureLoadBalancer ` - - + @@ -4843,180 +16112,48 @@ New-AzureLoadBalancer ` - New-AzureLoadBalancerRuleConfig + Remove-AzureNetworkInterface - Create a new Load Balancing Rule for an Azure Load Balancer + Remove a Network Interface - New - AzureLoadBalancerRuleConfig + Remove + AzureNetworkInterface - Create a new Load Balancing Rule for an Azure Load Balancer + Remove a Network Interface - New-AzureLoadBalancerRuleConfig - - Name - - The name of the Load Balancing Rule. - - String - - - FrontendIpConfigurationId - - A list of Frontend Ip Id's to associate with this Load Balancer Rule. - - String - - - BackendAddressPoolId - - The Id of a Backend Address Pool to associate with this Load Balancer Rule. - - String - - - ProbeId - - The Id of the Probe to associate with this Load Balancer Rule. - - String - - - Protocol - - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp - - String - - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - - LoadDistribution - - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers - - String - - - EnableFloatingIP - - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. - - SwitchParameter - - - Profile - - - - AzureProfile - - - - New-AzureLoadBalancerRuleConfig - + Remove-AzureNetworkInterface + Name - The name of the Load Balancing Rule. - - String - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Load Balancer Rule. - - PSFrontendIPConfiguration - - - BackendAddressPool - - The Backend Address Pool to associate with this Load Balancer Rule. - - PSBackendAddressPool - - - Probe - - The Probe to associate with this Load Balancer Rule. - - PSProbe - - - Protocol - - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp + The name of the Network Interface to remove. String - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 - - - IdleTimeoutInMinutes + + ResourceGroupName - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + The name of the Resource Group containing the Network Interface. - Int32 + String - LoadDistribution + Force - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + Forces the deletion of the Network Interface without asking for confirmation. - String + SwitchParameter - EnableFloatingIP + PassThru - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + Indicate if an object should be returned. Returns true if remove is successful. SwitchParameter @@ -5030,10 +16167,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + Name - The name of the Load Balancing Rule. + The name of the Network Interface to remove. String @@ -5042,10 +16179,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - FrontendIpConfigurationId + + ResourceGroupName - A list of Frontend Ip Id's to associate with this Load Balancer Rule. + The name of the Resource Group containing the Network Interface. String @@ -5055,21 +16192,143 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - BackendAddressPoolId + Force - The Id of a Backend Address Pool to associate with this Load Balancer Rule. + Forces the deletion of the Network Interface without asking for confirmation. - String + SwitchParameter - String + SwitchParameter - ProbeId + PassThru - The Id of the Probe to associate with this Load Balancer Rule. + Indicate if an object should be returned. Returns true if remove is successful. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureNetworkSecurityGroup + + Remove a Network Security Group + + + + + Remove + AzureNetworkSecurityGroup + + + + Remove a Network Security Group + + + + Remove-AzureNetworkSecurityGroup + + Name + + The name of the Network Security Group to remove. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Network Security Group. + + String + + + Force + + Forces the deletion of the Network Security Group regardless of whether resources are assigned to it. + + SwitchParameter + + + PassThru + + Indicate if an object should be returned. Returns true if remove is successful. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Network Security Group to remove. String @@ -5078,11 +16337,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Protocol + + ResourceGroupName - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp + The name of the Resource Group containing the Network Security Group. String @@ -5092,49 +16350,129 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - FrontendPort + Force - The frontend port matched by this Load Balancer Rule. + Forces the deletion of the Network Security Group regardless of whether resources are assigned to it. - Int32 + SwitchParameter - Int32 + SwitchParameter - BackendPort + PassThru - The backend port for traffic matched by this Load Balancer Rule. + Indicate if an object should be returned. Returns true if remove is successful. - Int32 + SwitchParameter - Int32 + SwitchParameter - IdleTimeoutInMinutes + Profile - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + AzureProfile - Int32 + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureNetworkSecurityRuleConfig + + Remove a Network Security Rule from a Network Security Group + + + + + Remove + AzureNetworkSecurityRuleConfig + + + + Remove a Network Security Rule from a Network Security Group + + + + Remove-AzureNetworkSecurityRuleConfig + + Name + + The name of the Network Security Rule to remove. + + String + + + NetworkSecurityGroup + + The name of the Network Security Group containing the Network Security Rule to be removed. + + PSNetworkSecurityGroup + + + Profile + + + + AzureProfile + + + + - LoadDistribution + Name - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + The name of the Network Security Rule to remove. String @@ -5143,14 +16481,14 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - EnableFloatingIP + + NetworkSecurityGroup - Floating IP is pertinent to failover scenarios: a “floating” IP is reassigned to a secondary server in case the primary server fails. Floating IP is required for SQL AlwaysOn. + The name of the Network Security Group containing the Network Security Rule to be removed. - SwitchParameter + PSNetworkSecurityGroup - SwitchParameter + PSNetworkSecurityGroup @@ -5167,42 +16505,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Load Balancer Rule. - - PSFrontendIPConfiguration - - PSFrontendIPConfiguration - - - - - - BackendAddressPool - - The Backend Address Pool to associate with this Load Balancer Rule. - - PSBackendAddressPool - - PSBackendAddressPool - - - - - - Probe - - The Probe to associate with this Load Balancer Rule. - - PSProbe - - PSProbe - - - - @@ -5246,212 +16548,48 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - New-AzureNetworkInterface + Remove-AzurePublicIpAddress - Create a new Network Interface + Remove a Public Ip Address - New - AzureNetworkInterface + Remove + AzurePublicIpAddress - Create a new Network Interface + Remove a Public Ip Address - New-AzureNetworkInterface - - Name - - The name of the Network Interface. - - String - - - ResourceGroupName - - The name of the Resource Group in which this Network Interface will be created. - - String - - - Location - - The Region in which this Network Interface will be created. - - String - - - PrivateIpAddress - - The static Ipv4 Ip address to be assigned to this Network Interface. Optional - - String - - - SubnetId - - The Id of the Subnet resource in which this Network Interface will be created. - - String - - - PublicIpAddressId - - The Id of the Public Ip Address resource to assign to this Network Interface. - - String - - - NetworkSecurityGroupId - - The Network Security Group object containing ACLs that will apply to this NIC. - - String - - - LoadBalancerBackendAddressPoolId - - A reference to a Load Balancer Address Pool to which this NIC will be added. - - List`1[String] - - - LoadBalancerInboundNatRuleId - - A reference to a Load Balancer Inbound Nat Rule to which this NIC will be added. - - List`1[String] - - - IpConfigurationName - - The name of Ip Configuration. - - String - - - DnsServer - - The Dns servers to be used for performing Dns lookups from this NIC. - - List`1[String] - - - Tag - - A dictionary of tags to be associated with this Network Interface. - - Hashtable[] - - - Force - - Forces the creation of the Network Interface even if a Network Interface with the same name already exists. - - SwitchParameter - - - Profile - - - - AzureProfile - - - - New-AzureNetworkInterface - - Name - - The name of the Network Interface. - - String - - - ResourceGroupName - - The name of the Resource Group in which this Network Interface will be created. - - String - - - Location - - The Region in which this Network Interface will be created. - - String - - - PrivateIpAddress - - The static Ipv4 Ip address to be assigned to this Network Interface. Optional - - String - - - Subnet - - The Subnet object in which this Network Interface will be created. - - PSSubnet - - - PublicIpAddress - - The Public Ip Address object to assign to this Network Interface. - - PSPublicIpAddress - - - NetworkSecurityGroup - - A reference to a Network Security Group object containing ACLs that will apply to this NIC. - - PSNetworkSecurityGroup - - - LoadBalancerBackendAddressPool - - A Load Balancer Address Pool object to which this NIC will be added. - - List`1[PSBackendAddressPool] - - - LoadBalancerInboundNatRule - - A Load Balancer Inbound Nat Rule object to which this NIC will be added. - - List`1[PSInboundNatRule] - - - IpConfigurationName + Remove-AzurePublicIpAddress + + Name - The name of Ip Configuration. + The name of the Public Ip Address to remove. String - - DnsServer + + ResourceGroupName - The Dns servers to be used for performing Dns lookups from this NIC. + The name of the Resource Group containing the Public Ip Address. - List`1[String] + String - - Tag + + Force - A dictionary of tags to be associated with this Network Interface. + Forces the deletion of the Public Ip Address without asking for confirmation. - Hashtable[] + SwitchParameter - Force + PassThru - Forces the creation of the Network Interface even if a Network Interface with the same name already exists. + Indicate if an object should be returned. Returns true if remove is successful. SwitchParameter @@ -5468,7 +16606,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map Name - The name of the Network Interface. + The name of the Public Ip Address to remove. String @@ -5480,7 +16618,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map ResourceGroupName - The name of the Resource Group in which this Network Interface will be created. + The name of the Resource Group containing the Public Ip Address. String @@ -5489,58 +16627,130 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Location + + Force - The Region in which this Network Interface will be created. + Forces the deletion of the Public Ip Address without asking for confirmation. - String + SwitchParameter - String + SwitchParameter - - PrivateIpAddress + + PassThru - The static Ipv4 Ip address to be assigned to this Network Interface. Optional + Indicate if an object should be returned. Returns true if remove is successful. - String + SwitchParameter - String + SwitchParameter - - SubnetId + + Profile - The Id of the Subnet resource in which this Network Interface will be created. + - String + AzureProfile - String + AzureProfile - - PublicIpAddressId + + + + + + + + - The Id of the Public Ip Address resource to assign to this Network Interface. + + - String + + + + - String - + + + - - - - NetworkSecurityGroupId - The Network Security Group object containing ACLs that will apply to this NIC. + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRouteConfig + + Remove a Route + + + + + Remove + AzureRouteConfig + + + + Remove a Route + + + + Remove-AzureRouteConfig + + Name + + Name of the Route + + String + + + RouteTable + + The Route Table containing the Route + + PSRouteTable + + + Profile + + + + AzureProfile + + + + + + Name + + Name of the Route String @@ -5549,34 +16759,130 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - LoadBalancerBackendAddressPoolId + + RouteTable - A reference to a Load Balancer Address Pool to which this NIC will be added. + The Route Table containing the Route - List`1[String] + PSRouteTable - List`1[String] + PSRouteTable - - LoadBalancerInboundNatRuleId + + Profile - A reference to a Load Balancer Inbound Nat Rule to which this NIC will be added. + - List`1[String] + AzureProfile - List`1[String] + AzureProfile - - IpConfigurationName + + + + + + + + - The name of Ip Configuration. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRouteTable + + Remove an Azure Route Table + + + + + Remove + AzureRouteTable + + + + Remove an Azure Route Table + + + + Remove-AzureRouteTable + + Name + + The name of the Route Table to remove. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Route Table. + + String + + + Force + + Forces the deletion of the Route Table without asking for confirmation. + + SwitchParameter + + + PassThru + + Indicate if an object should be returned. Returns true if remove is successful. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Route Table to remove. String @@ -5585,34 +16891,34 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - DnsServer + + ResourceGroupName - The Dns servers to be used for performing Dns lookups from this NIC. + The name of the Resource Group containing the Route Table. - List`1[String] + String - List`1[String] + String - - Tag + + Force - A dictionary of tags to be associated with this Network Interface. + Forces the deletion of the Route Table without asking for confirmation. - Hashtable[] + SwitchParameter - Hashtable[] + SwitchParameter - Force + PassThru - Forces the creation of the Network Interface even if a Network Interface with the same name already exists. + Indicate if an object should be returned. Returns true if remove is successful. SwitchParameter @@ -5633,74 +16939,158 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Subnet + + + + + + + + - The Subnet object in which this Network Interface will be created. + - PSSubnet + + + + - PSSubnet - + + + - - - - PublicIpAddress - The Public Ip Address object to assign to this Network Interface. + - PSPublicIpAddress + + + + + + + + + + + + + + + + + + + Remove-AzureVirtualNetwork + + Remove a Virtual Network + + + + + Remove + AzureVirtualNetwork + + + + Remove a Virtual Network + + + + Remove-AzureVirtualNetwork + + Name + + The name of the Virtual Network to remove. + + String + + + ResourceGroupName + + The name of the Resource Group containing the Virtual Network. + + String + + + Force + + Forces the deletion of the Virtual Network without confirmation. + + SwitchParameter + + + PassThru + + Indicate if an object should be returned. Returns true if remove is successful. + + SwitchParameter + + + Profile + + + + AzureProfile + + + + + + Name + + The name of the Virtual Network to remove. + + String - PSPublicIpAddress + String - - NetworkSecurityGroup + + ResourceGroupName - A reference to a Network Security Group object containing ACLs that will apply to this NIC. + The name of the Resource Group containing the Virtual Network. - PSNetworkSecurityGroup + String - PSNetworkSecurityGroup + String - - LoadBalancerBackendAddressPool + + Force - A Load Balancer Address Pool object to which this NIC will be added. + Forces the deletion of the Virtual Network without confirmation. - List`1[PSBackendAddressPool] + SwitchParameter - List`1[PSBackendAddressPool] + SwitchParameter - - LoadBalancerInboundNatRule + + PassThru - A Load Balancer Inbound Nat Rule object to which this NIC will be added. + Indicate if an object should be returned. Returns true if remove is successful. - List`1[PSInboundNatRule] + SwitchParameter - List`1[PSInboundNatRule] + SwitchParameter - - AllocationMethod + + Profile - How Ips are assigned to this Network Interface. Options: Static or Dynamic + - string + AzureProfile - string + AzureProfile @@ -5741,44 +17131,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - -------------------------- Example 1 -------------------------- - - PS C:\> - - New-AzureResourceGroup ` - -Name 'SampleRG' ` - -Location "West US" - -$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 - -$vnet = New-AzurevirtualNetwork ` - -Name SampleVNet ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -AddressPrefix 10.0.0.0/16 ` - -Subnet $frontendSubnet,$backendSubnet - -$backendNic = New-AzureNetworkInterface ` - -Name LB-Nic-BE ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -PrivateIpAddress 10.0.2.4 ` - -Subnet $backendSubnet - - - - - - - - - - - - - - @@ -5786,62 +17138,48 @@ $backendNic = New-AzureNetworkInterface ` - New-AzureNetworkSecurityGroup + Remove-AzureVirtualNetworkGateway - Create a new Network Security Group + - New - AzureNetworkSecurityGroup + Remove + AzureVirtualNetworkGateway - Create a new Network Security Group + - New-AzureNetworkSecurityGroup + Remove-AzureVirtualNetworkGateway Name - The name of the Network Security Group. + String ResourceGroupName - The name of the Resource Group in which this Network Security Group will be created. - - String - - - Location - - The Region in which this Network Security Group will be created. + String - - SecurityRules - - A list of Network Security Rule objects to create within this Network Security Group. - - List`1[PSSecurityRule] - - - Tag + + Force - A dictionary of tags to be associated with this Network Security Group. + - Hashtable[] + SwitchParameter - Force + PassThru - Forces the creation of the Network Security Group even if a Network Security Group with the same name already exists. + SwitchParameter @@ -5856,21 +17194,9 @@ $backendNic = New-AzureNetworkInterface ` - Name - - The name of the Network Security Group. - - String - - String - - - - - - ResourceGroupName + Name - The name of the Resource Group in which this Network Security Group will be created. + String @@ -5880,9 +17206,9 @@ $backendNic = New-AzureNetworkInterface ` - Location + ResourceGroupName - The Region in which this Network Security Group will be created. + String @@ -5891,34 +17217,22 @@ $backendNic = New-AzureNetworkInterface ` - - SecurityRules - - A list of Network Security Rule objects to create within this Network Security Group. - - List`1[PSSecurityRule] - - List`1[PSSecurityRule] - - - - - - Tag + + Force - A dictionary of tags to be associated with this Network Security Group. + - Hashtable[] + SwitchParameter - Hashtable[] + SwitchParameter - Force + PassThru - Forces the creation of the Network Security Group even if a Network Security Group with the same name already exists. + SwitchParameter @@ -5980,92 +17294,50 @@ $backendNic = New-AzureNetworkInterface ` - New-AzureNetworkSecurityRuleConfig + Remove-AzureVirtualNetworkGatewayConnection - Create a new Network Security Rule within a Network Security Group + - New - AzureNetworkSecurityRuleConfig + Remove + AzureVirtualNetworkGatewayConnection - Create a new Network Security Rule within a Network Security Group + - New-AzureNetworkSecurityRuleConfig - + Remove-AzureVirtualNetworkGatewayConnection + Name - The name of the Network Security Rule. - - String - - - Description - - The description of the Network Security Rule. - - String - - - Protocol - - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. - - String - - - SourcePortRange - - Source Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - - DestinationPortRange - - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. - - String - - - SourceAddressPrefix - - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. - - String - - - DestinationAddressPrefix - - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + String - - Access + + ResourceGroupName - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + String - Priority + Force - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + - Int32 + SwitchParameter - Direction + PassThru - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + - String + SwitchParameter Profile @@ -6077,10 +17349,10 @@ $backendNic = New-AzureNetworkInterface ` - + Name - The name of the Network Security Rule. + String @@ -6089,10 +17361,10 @@ $backendNic = New-AzureNetworkInterface ` - - Description + + ResourceGroupName - The description of the Network Security Rule. + String @@ -6102,97 +17374,143 @@ $backendNic = New-AzureNetworkInterface ` - Protocol + Force - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + - String + SwitchParameter - String + SwitchParameter - SourcePortRange + PassThru - Source Port or Range. Integer or range between 0 and 65535 or * to match any. + - String + SwitchParameter - String + SwitchParameter - DestinationPortRange + Profile - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + - String + AzureProfile - String + AzureProfile - - SourceAddressPrefix - - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. - - String + + + - String - + + + - - - - DestinationAddressPrefix - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + - String + + + + - String - + + + - - - - Access - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + - String - - String - - - - + + + + + + + + + + + + + + + + + + + Remove-AzureVirtualNetworkSubnetConfig + + Remove a Subnet from a Virtual Network + + + + + Remove + AzureVirtualNetworkSubnetConfig + + + + Remove a Subnet from a Virtual Network + + + + Remove-AzureVirtualNetworkSubnetConfig + + Name + + The name of the Subnet to remove. + + String + + + VirtualNetwork + + The name of the Virtual Network containing the Subnet to be removed. + + PSVirtualNetwork + + + Profile + + + + AzureProfile + + + + - Priority + Name - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + The name of the Subnet to remove. - Int32 + String - Int32 + String - - Direction + + VirtualNetwork - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + The name of the Virtual Network containing the Subnet to be removed. - String + PSVirtualNetwork - String + PSVirtualNetwork @@ -6218,7 +17536,8 @@ $backendNic = New-AzureNetworkInterface ` - + + @@ -6230,7 +17549,8 @@ $backendNic = New-AzureNetworkInterface ` - + + @@ -6250,86 +17570,29 @@ $backendNic = New-AzureNetworkInterface ` - New-AzurePublicIpAddress + Reset-AzureVirtualNetworkGateway - Create a new Public Ip Address + - New - AzurePublicIpAddress + Reset + AzureVirtualNetworkGateway - Create a new Public Ip Address + - New-AzurePublicIpAddress - - Name - - The name of the Public Ip Address. - - String - - - ResourceGroupName - - The name of the Resource Group in which this Public Ip Address will be created. - - String - - - Location - - The Region in which this Public Ip Address will be created. - - String - - - AllocationMethod - - How Ips are assigned to this Public Ip Address. - Options: Static or Dynamic - - String - - - DomainNameLabel - - The relative Dns name for this Public Ip Address. - - String - - - ReverseFqdn - - The Dns Fqdn that you wish to associate with this Public Ip Address. - - String - - - IdleTimeoutInMinutes - - Specifies the timeout for the Tcp idle connection - - Int32 - - - Tag - - A dictionary of tags to be associated with this Public Ip Address. - - Hashtable[] - - - Force + Reset-AzureVirtualNetworkGateway + + VirtualNetworkGateway - Force the creation of this Public Ip Address possibly overwriting an existing Public Ip Address. + - SwitchParameter + PSVirtualNetworkGateway Profile @@ -6341,111 +17604,14 @@ $backendNic = New-AzureNetworkInterface ` - - Name - - The name of the Public Ip Address. - - String - - String - - - - - - ResourceGroupName - - The name of the Resource Group in which this Public Ip Address will be created. - - String - - String - - - - - - Location - - The Region in which this Public Ip Address will be created. - - String - - String - - - - - - AllocationMethod - - How Ips are assigned to this Public Ip Address. - Options: Static or Dynamic - - String - - String - - - - - - DomainNameLabel - - The relative Dns name for this Public Ip Address. - - String - - String - - - - - - ReverseFqdn - - The Dns Fqdn that you wish to associate with this Public Ip Address. - - String - - String - - - - - - IdleTimeoutInMinutes - - Specifies the timeout for the Tcp idle connection - - Int32 - - Int32 - - - - - - Tag - - A dictionary of tags to be associated with this Public Ip Address. - - Hashtable[] - - Hashtable[] - - - - - - Force + + VirtualNetworkGateway - Force the creation of this Public Ip Address possibly overwriting an existing Public Ip Address. + - SwitchParameter + PSVirtualNetworkGateway - SwitchParameter + PSVirtualNetworkGateway @@ -6471,8 +17637,7 @@ $backendNic = New-AzureNetworkInterface ` - - + @@ -6484,8 +17649,7 @@ $backendNic = New-AzureNetworkInterface ` - - + @@ -6498,35 +17662,6 @@ $backendNic = New-AzureNetworkInterface ` - - -------------------------- Example 1 -------------------------- - - PS C:\> - - New-AzureResourceGroup ` - -Name 'SampleRG' ` - -Location "West US" - -$publicIP = New-AzurePublicIpAddress ` - -Name PublicIp ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - –AllocationMethod Dynamic ` - -DomainNameLabel samplelbip - - - - - - - - - - - - - - @@ -6534,76 +17669,48 @@ $publicIP = New-AzurePublicIpAddress ` - New-AzureVirtualNetwork + Reset-AzureVirtualNetworkGatewayConnectionSharedKey - Create a new Virtual Network + - New - AzureVirtualNetwork + Reset + AzureVirtualNetworkGatewayConnectionSharedKey - Create a new Virtual Network + - New-AzureVirtualNetwork + Reset-AzureVirtualNetworkGatewayConnectionSharedKey Name - The name of the Virtual Network. + String ResourceGroupName - The name of the Resource Group containing the Virtual Network. - - String - - - Location - - The Region in which this Virtual Network will be created. + String - - AddressPrefix - - A list of Ip ranges covered by this Virtual Network. - - List`1[String] - - - DnsServer - - The Dns servers to be used for performing Dns lookups from this Virtual Network. - - List`1[String] - - - Subnet - - A list of Subnets associated with this Virtual Network. - - List`1[PSSubnet] - - - Tag + + KeyLength - A dictionary of tags to be associated with this Virtual Network. + - Hashtable[] + UInt32 Force - Force the creation of this Virtual Network possibly overwriting an existing Virtual Network. + SwitchParameter @@ -6620,7 +17727,7 @@ $publicIP = New-AzurePublicIpAddress ` Name - The name of the Virtual Network. + String @@ -6632,7 +17739,7 @@ $publicIP = New-AzurePublicIpAddress ` ResourceGroupName - The name of the Resource Group containing the Virtual Network. + String @@ -6642,73 +17749,124 @@ $publicIP = New-AzurePublicIpAddress ` - Location + KeyLength - The Region in which this Virtual Network will be created. + - String + UInt32 - String + UInt32 - - AddressPrefix + + Force - A list of Ip ranges covered by this Virtual Network. + - List`1[String] + SwitchParameter - List`1[String] + SwitchParameter - - DnsServer + + Profile - The Dns servers to be used for performing Dns lookups from this Virtual Network. + - List`1[String] + AzureProfile - List`1[String] + AzureProfile - - Subnet - - A list of Subnets associated with this Virtual Network. - - List`1[PSSubnet] + + + - List`1[PSSubnet] - + + + - - - - Tag - A dictionary of tags to be associated with this Virtual Network. + - Hashtable[] + + + + - Hashtable[] - + + + - - - - Force - Force the creation of this Virtual Network possibly overwriting an existing Virtual Network. + - SwitchParameter + + + + + + + + + + + + + + + + + + + Set-AzureApplicationGateway + + + + + + + Set + AzureApplicationGateway + + + + + + + + Set-AzureApplicationGateway + + ApplicationGateway + + + + PSApplicationGateway + + + Profile + + + + AzureProfile + + + + + + ApplicationGateway + + + + PSApplicationGateway - SwitchParameter + PSApplicationGateway @@ -6734,8 +17892,7 @@ $publicIP = New-AzurePublicIpAddress ` - - + @@ -6747,8 +17904,7 @@ $publicIP = New-AzurePublicIpAddress ` - - + @@ -6761,37 +17917,6 @@ $publicIP = New-AzurePublicIpAddress ` - - -------------------------- Example 1 -------------------------- - - PS C:\> - - New-AzureResourceGroup ` - -Name 'SampleRG' ` - -Location "West US" - -$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 - -$vnet = New-AzurevirtualNetwork ` - -Name SampleVNet ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -AddressPrefix 10.0.0.0/16 ` - -Subnet $frontendSubnet,$backendSubnet - - - - - - - - - - - - - - @@ -6799,43 +17924,43 @@ $vnet = New-AzurevirtualNetwork ` - New-AzureVirtualNetworkSubnetConfig + Set-AzureApplicationGatewayBackendAddressPool - Create a new Virtual Network Subnet + - New - AzureVirtualNetworkSubnetConfig + Set + AzureApplicationGatewayBackendAddressPool - Create a new Virtual Network Subnet + - New-AzureVirtualNetworkSubnetConfig - - Name + Set-AzureApplicationGatewayBackendAddressPool + + ApplicationGateway - The name of the Subnet. + - String + PSApplicationGateway - AddressPrefix + Name - The Ip range covered by this Subnet. + String - - NetworkSecurityGroup + + BackendIPConfigurationIds - The Network Security Group object containing ACLs that will apply to this Subnet. + - PSNetworkSecurityGroup + List`1[String] Profile @@ -6846,27 +17971,58 @@ $vnet = New-AzurevirtualNetwork ` - New-AzureVirtualNetworkSubnetConfig + Set-AzureApplicationGatewayBackendAddressPool + + ApplicationGateway + + + + PSApplicationGateway + Name - The name of the Subnet. + String + + BackendIPAddresses + + + + List`1[String] + + + Profile + + + + AzureProfile + + + + Set-AzureApplicationGatewayBackendAddressPool + + ApplicationGateway + + + + PSApplicationGateway + - AddressPrefix + Name - The Ip range covered by this Subnet. + String - - NetworkSecurityGroupId + + BackendFqdns - A reference to a Network Security Group containing ACLs that will apply to this Subnet. + - String + List`1[String] Profile @@ -6878,22 +18034,22 @@ $vnet = New-AzurevirtualNetwork ` - - Name + + ApplicationGateway - The name of the Subnet. + - String + PSApplicationGateway - String + PSApplicationGateway - AddressPrefix + Name - The Ip range covered by this Subnet. + String @@ -6902,14 +18058,14 @@ $vnet = New-AzurevirtualNetwork ` - - NetworkSecurityGroup + + BackendIPConfigurationIds - The Network Security Group object containing ACLs that will apply to this Subnet. + - PSNetworkSecurityGroup + List`1[String] - PSNetworkSecurityGroup + List`1[String] @@ -6926,26 +18082,26 @@ $vnet = New-AzurevirtualNetwork ` - - NetworkSecurityGroupId + + BackendIPAddresses - A reference to a Network Security Group containing ACLs that will apply to this Subnet. + - String + List`1[String] - String + List`1[String] - - DnsServer + + BackendFqdns - The Dns servers to be used for performing Dns lookups from this Subnet. + - list`1[string] + List`1[String] - list`1[string] + List`1[String] @@ -6959,8 +18115,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -6972,8 +18127,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -6986,89 +18140,64 @@ $vnet = New-AzurevirtualNetwork ` - - -------------------------- Example 1 -------------------------- - - PS C:\> - - New-AzureResourceGroup ` - -Name 'SampleRG' ` - -Location "West US" - -$backendSubnet = New-AzureVirtualNetworkSubnetConfig -Name LB-Subnet-BE -AddressPrefix 10.0.2.0/24 - -$vnet = New-AzurevirtualNetwork ` - -Name SampleVNet ` - -ResourceGroupName SampleRG ` - -Location "West US" ` - -AddressPrefix 10.0.0.0/16 ` - -Subnet $frontendSubnet,$backendSubnet - - - - - - - - - - - - - - - - Remove-AzureLoadBalancer + Set-AzureApplicationGatewayBackendHttpSettings - Remove an Azure Load Balancer + - Remove - AzureLoadBalancer + Set + AzureApplicationGatewayBackendHttpSettings - Remove an Azure Load Balancer + - Remove-AzureLoadBalancer - + Set-AzureApplicationGatewayBackendHttpSettings + + ApplicationGateway + + + + PSApplicationGateway + + Name - The name of the Load Balancer to remove. + String - - ResourceGroupName + + Port - The name of the Resource Group containing the Load Balancer. + - String + Int32 - - Force + + Protocol - Forces the deletion of the Load Balancer regardless of whether resources are assigned to it. + - SwitchParameter + String - - PassThru + + CookieBasedAffinity - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + String Profile @@ -7080,10 +18209,22 @@ $vnet = New-AzurevirtualNetwork ` - + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + Name - The name of the Load Balancer to remove. + String @@ -7092,38 +18233,38 @@ $vnet = New-AzurevirtualNetwork ` - - ResourceGroupName + + Port - The name of the Resource Group containing the Load Balancer. + - String + Int32 - String + Int32 - - Force + + Protocol - Forces the deletion of the Load Balancer regardless of whether resources are assigned to it. + - SwitchParameter + String - SwitchParameter + String - - PassThru + + CookieBasedAffinity - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + String - SwitchParameter + String @@ -7149,8 +18290,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7162,8 +18302,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7183,36 +18322,102 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureLoadBalancerBackendAddressPoolConfig + Set-AzureApplicationGatewayFrontendIPConfig - Remove a Backend Address Pool + - Remove - AzureLoadBalancerBackendAddressPoolConfig + Set + AzureApplicationGatewayFrontendIPConfig - Remove a Backend Address Pool + - Remove-AzureLoadBalancerBackendAddressPoolConfig - + Set-AzureApplicationGatewayFrontendIPConfig + + ApplicationGateway + + + + PSApplicationGateway + + Name - The Load Balancer containing the Backend Address Pool. + + + String + + + PrivateIPAddress + + String + + Subnet + + + + PSSubnet + + + PublicIPAddress + + + + PSPublicIpAddress + + + Profile + + + + AzureProfile + + + + Set-AzureApplicationGatewayFrontendIPConfig - LoadBalancer + ApplicationGateway - The name of the Backend Address Pool to remove. + - PSLoadBalancer + PSApplicationGateway + + + Name + + + + String + + + PrivateIPAddress + + + + String + + + SubnetId + + + + String + + + PublicIPAddressId + + + + String Profile @@ -7224,38 +18429,98 @@ $vnet = New-AzurevirtualNetwork ` + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Name + + + + String + + String + + + + + + PrivateIPAddress + + + + String + + String + + + + + + Subnet + + + + PSSubnet + + PSSubnet + + + + + + PublicIPAddress + + + + PSPublicIpAddress + + PSPublicIpAddress + + + + - Name + Profile - The Load Balancer containing the Backend Address Pool. + - String + AzureProfile - String + AzureProfile - - LoadBalancer + + SubnetId - The name of the Backend Address Pool to remove. + - PSLoadBalancer + String - PSLoadBalancer + String - Profile + PublicIPAddressId - AzureProfile + String - AzureProfile + String @@ -7269,8 +18534,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7282,8 +18546,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7303,36 +18566,43 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureLoadBalancerFrontendIpConfig + Set-AzureApplicationGatewayFrontendPort - Remove a Frontend Ip configuration + - Remove - AzureLoadBalancerFrontendIpConfig + Set + AzureApplicationGatewayFrontendPort - Remove a Frontend Ip configuration + - Remove-AzureLoadBalancerFrontendIpConfig - + Set-AzureApplicationGatewayFrontendPort + + ApplicationGateway + + + + PSApplicationGateway + + Name - The name of the Frontend Ip configuration to remove. + String - - LoadBalancer + + Port - The Load Balancer containing the Frontend Ip configuration. + - PSLoadBalancer + Int32 Profile @@ -7344,10 +18614,22 @@ $vnet = New-AzurevirtualNetwork ` - + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + Name - The name of the Frontend Ip configuration to remove. + String @@ -7356,14 +18638,14 @@ $vnet = New-AzurevirtualNetwork ` - - LoadBalancer + + Port - The Load Balancer containing the Frontend Ip configuration. + - PSLoadBalancer + Int32 - PSLoadBalancer + Int32 @@ -7389,8 +18671,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7402,8 +18683,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7423,36 +18703,116 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureLoadBalancerInboundNatRuleConfig + Set-AzureApplicationGatewayHttpListener - Remove an Inbound NAT Rule + - Remove - AzureLoadBalancerInboundNatRuleConfig + Set + AzureApplicationGatewayHttpListener - Remove an Inbound NAT Rule + - Remove-AzureLoadBalancerInboundNatRuleConfig - + Set-AzureApplicationGatewayHttpListener + + ApplicationGateway + + + + PSApplicationGateway + + Name - The name of the Inbound NAT Rule to remove. + + + String + + + FrontendIPConfigurationId + + + + String + + + FrontendPortId + + + + String + + + SslCertificateId + + String + + Protocol + + + + String + + + Profile + + + + AzureProfile + + + + Set-AzureApplicationGatewayHttpListener - LoadBalancer + ApplicationGateway - The Load Balancer containing the Inbound NAT Rule. + - PSLoadBalancer + PSApplicationGateway + + + Name + + + + String + + + FrontendIPConfiguration + + + + PSApplicationGatewayFrontendIPConfiguration + + + FrontendPort + + + + PSApplicationGatewayFrontendPort + + + SslCertificate + + + + PSApplicationGatewaySslCertificate + + + Protocol + + + + String Profile @@ -7464,10 +18824,22 @@ $vnet = New-AzurevirtualNetwork ` - + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + Name - The name of the Inbound NAT Rule to remove. + String @@ -7476,14 +18848,50 @@ $vnet = New-AzurevirtualNetwork ` - - LoadBalancer + + FrontendIPConfigurationId - The Load Balancer containing the Inbound NAT Rule. + - PSLoadBalancer + String - PSLoadBalancer + String + + + + + + FrontendPortId + + + + String + + String + + + + + + SslCertificateId + + + + String + + String + + + + + + Protocol + + + + String + + String @@ -7500,6 +18908,42 @@ $vnet = New-AzurevirtualNetwork ` + + FrontendIPConfiguration + + + + PSApplicationGatewayFrontendIPConfiguration + + PSApplicationGatewayFrontendIPConfiguration + + + + + + FrontendPort + + + + PSApplicationGatewayFrontendPort + + PSApplicationGatewayFrontendPort + + + + + + SslCertificate + + + + PSApplicationGatewaySslCertificate + + PSApplicationGatewaySslCertificate + + + + @@ -7509,8 +18953,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7522,8 +18965,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7543,36 +18985,74 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureLoadBalancerProbeConfig + Set-AzureApplicationGatewayIPConfiguration - Remove a Probe configuration + - Remove - AzureLoadBalancerProbeConfig + Set + AzureApplicationGatewayIPConfiguration - Remove a Probe configuration + - Remove-AzureLoadBalancerProbeConfig - + Set-AzureApplicationGatewayIPConfiguration + + ApplicationGateway + + + + PSApplicationGateway + + Name - The name of the probe configuration to remove. + + + String + + + SubnetId + + String + + Profile + + + + AzureProfile + + + + Set-AzureApplicationGatewayIPConfiguration - LoadBalancer + ApplicationGateway - The Load Balancer containing the probe configuration. + - PSLoadBalancer + PSApplicationGateway + + + Name + + + + String + + + Subnet + + + + PSSubnet Profile @@ -7584,10 +19064,22 @@ $vnet = New-AzurevirtualNetwork ` - + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + Name - The name of the probe configuration to remove. + String @@ -7596,14 +19088,14 @@ $vnet = New-AzurevirtualNetwork ` - - LoadBalancer + + SubnetId - The Load Balancer containing the probe configuration. + - PSLoadBalancer + String - PSLoadBalancer + String @@ -7620,6 +19112,18 @@ $vnet = New-AzurevirtualNetwork ` + + Subnet + + + + PSSubnet + + PSSubnet + + + + @@ -7629,8 +19133,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7642,8 +19145,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7663,36 +19165,116 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureLoadBalancerRuleConfig + Set-AzureApplicationGatewayRequestRoutingRule - Remove a Load Balancer Rule + - Remove - AzureLoadBalancerRuleConfig + Set + AzureApplicationGatewayRequestRoutingRule - Remove a Load Balancer Rule + - Remove-AzureLoadBalancerRuleConfig - + Set-AzureApplicationGatewayRequestRoutingRule + + ApplicationGateway + + + + PSApplicationGateway + + Name - The name of the Load Balancer Rule to remove. + + + String + + + RuleType + + + + String + + + BackendHttpSettingsId + + + + String + + + HttpListenerId + + + + String + + + BackendAddressPoolId + + String + + Profile + + + + AzureProfile + + + + Set-AzureApplicationGatewayRequestRoutingRule - LoadBalancer + ApplicationGateway - The Load Balancer containing the Load Balancer Rule. + - PSLoadBalancer + PSApplicationGateway + + + Name + + + + String + + + RuleType + + + + String + + + BackendHttpSettings + + + + PSApplicationGatewayBackendHttpSettings + + + HttpListener + + + + PSApplicationGatewayHttpListener + + + BackendAddressPool + + + + PSApplicationGatewayBackendAddressPool Profile @@ -7704,38 +19286,122 @@ $vnet = New-AzurevirtualNetwork ` + + ApplicationGateway + + + + PSApplicationGateway + + PSApplicationGateway + + + + + + Name + + + + String + + String + + + + + + RuleType + + + + String + + String + + + + + + BackendHttpSettingsId + + + + String + + String + + + + + + HttpListenerId + + + + String + + String + + + + + + BackendAddressPoolId + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + - Name + BackendHttpSettings - The name of the Load Balancer Rule to remove. + - String + PSApplicationGatewayBackendHttpSettings - String + PSApplicationGatewayBackendHttpSettings - - LoadBalancer + + HttpListener - The Load Balancer containing the Load Balancer Rule. + - PSLoadBalancer + PSApplicationGatewayHttpListener - PSLoadBalancer + PSApplicationGatewayHttpListener - Profile + BackendAddressPool - AzureProfile + PSApplicationGatewayBackendAddressPool - AzureProfile + PSApplicationGatewayBackendAddressPool @@ -7749,8 +19415,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7762,8 +19427,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7783,50 +19447,50 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureNetworkInterface + Set-AzureApplicationGatewaySku - Remove a Network Interface + - Remove - AzureNetworkInterface + Set + AzureApplicationGatewaySku - Remove a Network Interface + - Remove-AzureNetworkInterface - - Name + Set-AzureApplicationGatewaySku + + ApplicationGateway - The name of the Network Interface to remove. + - String + PSApplicationGateway - - ResourceGroupName + + Name - The name of the Resource Group containing the Network Interface. + String - - Force + + Tier - Forces the deletion of the Network Interface without asking for confirmation. + - SwitchParameter + String - - PassThru + + Capacity - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + Int32 Profile @@ -7838,22 +19502,22 @@ $vnet = New-AzurevirtualNetwork ` - - Name + + ApplicationGateway - The name of the Network Interface to remove. + - String + PSApplicationGateway - String + PSApplicationGateway - - ResourceGroupName + + Name - The name of the Resource Group containing the Network Interface. + String @@ -7862,26 +19526,26 @@ $vnet = New-AzurevirtualNetwork ` - - Force + + Tier - Forces the deletion of the Network Interface without asking for confirmation. + - SwitchParameter + String - SwitchParameter + String - - PassThru + + Capacity - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + Int32 - SwitchParameter + Int32 @@ -7907,8 +19571,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7920,8 +19583,7 @@ $vnet = New-AzurevirtualNetwork ` - - + @@ -7941,50 +19603,50 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureNetworkSecurityGroup + Set-AzureApplicationGatewaySslCertificate - Remove a Network Security Group + - Remove - AzureNetworkSecurityGroup + Set + AzureApplicationGatewaySslCertificate - Remove a Network Security Group + - Remove-AzureNetworkSecurityGroup - - Name + Set-AzureApplicationGatewaySslCertificate + + ApplicationGateway - The name of the Network Security Group to remove. + - String + PSApplicationGateway - - ResourceGroupName + + Name - The name of the Resource Group containing the Network Security Group. + String - - Force + + CertificateFile - Forces the deletion of the Network Security Group regardless of whether resources are assigned to it. + - SwitchParameter + String - - PassThru + + Password - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + String Profile @@ -7996,22 +19658,22 @@ $vnet = New-AzurevirtualNetwork ` - - Name + + ApplicationGateway - The name of the Network Security Group to remove. + - String + PSApplicationGateway - String + PSApplicationGateway - - ResourceGroupName + + Name - The name of the Resource Group containing the Network Security Group. + String @@ -8020,26 +19682,26 @@ $vnet = New-AzurevirtualNetwork ` - - Force + + CertificateFile - Forces the deletion of the Network Security Group regardless of whether resources are assigned to it. + - SwitchParameter + String - SwitchParameter + String - - PassThru + + Password - Indicate if an object should be returned. Returns true if remove is successful. + - SwitchParameter + String - SwitchParameter + String @@ -8097,36 +19759,29 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureNetworkSecurityRuleConfig + Set-AzureLoadBalancer - Remove a Network Security Rule from a Network Security Group + Sets the goal state for an Azure Load Balancer - Remove - AzureNetworkSecurityRuleConfig + Set + AzureLoadBalancer - Remove a Network Security Rule from a Network Security Group + Sets the goal state for an Azure Load Balancer - Remove-AzureNetworkSecurityRuleConfig - - Name - - The name of the Network Security Rule to remove. - - String - + Set-AzureLoadBalancer - NetworkSecurityGroup + LoadBalancer - The name of the Network Security Group containing the Network Security Rule to be removed. + A Load Balancer object representing the goal state to which the Load Balancer should be set. - PSNetworkSecurityGroup + PSLoadBalancer Profile @@ -8138,26 +19793,14 @@ $vnet = New-AzurevirtualNetwork ` - - Name - - The name of the Network Security Rule to remove. - - String - - String - - - - - NetworkSecurityGroup + LoadBalancer - The name of the Network Security Group containing the Network Security Rule to be removed. + A Load Balancer object representing the goal state to which the Load Balancer should be set. - PSNetworkSecurityGroup + PSLoadBalancer - PSNetworkSecurityGroup + PSLoadBalancer @@ -8183,7 +19826,8 @@ $vnet = New-AzurevirtualNetwork ` - + + @@ -8195,7 +19839,8 @@ $vnet = New-AzurevirtualNetwork ` - + + @@ -8215,50 +19860,104 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzurePublicIpAddress + Set-AzureLoadBalancerFrontendIpConfig - Remove a Public Ip Address + Sets the goal state for a Frontend Ip configuration - Remove - AzurePublicIpAddress + Set + AzureLoadBalancerFrontendIpConfig - Remove a Public Ip Address + Sets the goal state for a Frontend Ip configuration - Remove-AzurePublicIpAddress - + Set-AzureLoadBalancerFrontendIpConfig + + Name + + The name of the Frontend Ip. + + String + + + LoadBalancer + + The Load Balancer object with which this Frontend Ip config will be associated. + + PSLoadBalancer + + + PrivateIpAddress + + The private Ip address of the Load Balancer. + This can be specified only if a subnet is specified + + String + + + SubnetId + + The Id of the Subnet in which this Frontend Ip will be created. + + String + + + PublicIpAddressId + + The Id of the Public Ip Address to associate with this Frontend Ip. + + String + + + Profile + + + + AzureProfile + + + + Set-AzureLoadBalancerFrontendIpConfig + Name - The name of the Public Ip Address to remove. + The name of the Frontend Ip. String - - ResourceGroupName + + LoadBalancer - The name of the Resource Group containing the Public Ip Address. + The Load Balancer object with which this Frontend Ip config will be associated. + + PSLoadBalancer + + + PrivateIpAddress + + The private Ip address of the Load Balancer. + This can be specified only if a subnet is specified String - Force + Subnet - Forces the deletion of the Public Ip Address without asking for confirmation. + The Subnet object within which this Frontend Ip will be created. - SwitchParameter + PSSubnet - PassThru + PublicIpAddress - Indicate if an object should be returned. Returns true if remove is successful. + The Public Ip Address object to associate with this Frontend Ip. - SwitchParameter + PSPublicIpAddress Profile @@ -8270,10 +19969,10 @@ $vnet = New-AzurevirtualNetwork ` - + Name - The name of the Public Ip Address to remove. + The name of the Frontend Ip. String @@ -8282,10 +19981,23 @@ $vnet = New-AzurevirtualNetwork ` - - ResourceGroupName + + LoadBalancer - The name of the Resource Group containing the Public Ip Address. + The Load Balancer object with which this Frontend Ip config will be associated. + + PSLoadBalancer + + PSLoadBalancer + + + + + + PrivateIpAddress + + The private Ip address of the Load Balancer. + This can be specified only if a subnet is specified String @@ -8295,25 +20007,25 @@ $vnet = New-AzurevirtualNetwork ` - Force + SubnetId - Forces the deletion of the Public Ip Address without asking for confirmation. + The Id of the Subnet in which this Frontend Ip will be created. - SwitchParameter + String - SwitchParameter + String - PassThru + PublicIpAddressId - Indicate if an object should be returned. Returns true if remove is successful. + The Id of the Public Ip Address to associate with this Frontend Ip. - SwitchParameter + String - SwitchParameter + String @@ -8330,6 +20042,30 @@ $vnet = New-AzurevirtualNetwork ` + + Subnet + + The Subnet object within which this Frontend Ip will be created. + + PSSubnet + + PSSubnet + + + + + + PublicIpAddress + + The Public Ip Address object to associate with this Frontend Ip. + + PSPublicIpAddress + + PSPublicIpAddress + + + + @@ -8373,48 +20109,144 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureVirtualNetwork + Set-AzureLoadBalancerInboundNatRuleConfig - Remove a Virtual Network + Add a new Inbound NAT Rule to an Azure Load Balancer - Remove - AzureVirtualNetwork + Set + AzureLoadBalancerInboundNatRuleConfig - Remove a Virtual Network + Add a new Inbound NAT Rule to an Azure Load Balancer - Remove-AzureVirtualNetwork - + Set-AzureLoadBalancerInboundNatRuleConfig + Name - The name of the Virtual Network to remove. + The name of the Inbound NAT Rule. String - - ResourceGroupName + + LoadBalancer - The name of the Resource Group containing the Virtual Network. + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + + FrontendIpConfigurationId + + A list of Frontend Ip Ids to associate with this Inbound NAT Rule. String - Force + Protocol - Forces the deletion of the Virtual Network without confirmation. + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which conversation state is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Inbound NAT Rule. SwitchParameter - PassThru + Profile - Indicate if an object should be returned. Returns true if remove is successful. + + + AzureProfile + + + + Set-AzureLoadBalancerInboundNatRuleConfig + + Name + + The name of the Inbound NAT Rule. + + String + + + LoadBalancer + + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + + Protocol + + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which conversation state is maintained within the Load Balancer. + + Int32 + + + EnableFloatingIP + + Enables Direct Server Return for this Inbound NAT Rule. SwitchParameter @@ -8428,10 +20260,34 @@ $vnet = New-AzurevirtualNetwork ` - + Name - The name of the Virtual Network to remove. + The name of the Inbound NAT Rule. + + String + + String + + + + + + LoadBalancer + + The Load Balancer in which this Inbound NAT Rule will be created. + + PSLoadBalancer + + PSLoadBalancer + + + + + + FrontendIpConfigurationId + + A list of Frontend Ip Ids to associate with this Inbound NAT Rule. String @@ -8440,10 +20296,11 @@ $vnet = New-AzurevirtualNetwork ` - - ResourceGroupName + + Protocol - The name of the Resource Group containing the Virtual Network. + The protocol matched by this Inbound NAT Rule. + Options: Tcp or Udp. String @@ -8453,21 +20310,45 @@ $vnet = New-AzurevirtualNetwork ` - Force + FrontendPort - Forces the deletion of the Virtual Network without confirmation. + The frontend port matched by this rule. - SwitchParameter + Int32 - SwitchParameter + Int32 - PassThru + BackendPort - Indicate if an object should be returned. Returns true if remove is successful. + The backend port for traffic matched by this rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which conversation state is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + EnableFloatingIP + + Enables Direct Server Return for this Inbound NAT Rule. SwitchParameter @@ -8488,6 +20369,42 @@ $vnet = New-AzurevirtualNetwork ` + + FrontendIpConfiguration + + A list of Frontend Ips to associate with this Inbound NAT Rule. + + PSFrontendIPConfiguration + + PSFrontendIPConfiguration + + + + + + BackendIpConfigurationId + + The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. + + string + + string + + + + + + BackendIpConfiguration + + The Ip Configuration to associate with the Backend Ip for this Inbound NAT Rule. + + psnetworkinterfaceipconfiguration + + psnetworkinterfaceipconfiguration + + + + @@ -8531,36 +20448,72 @@ $vnet = New-AzurevirtualNetwork ` - Remove-AzureVirtualNetworkSubnetConfig + Set-AzureLoadBalancerProbeConfig - Remove a Subnet from a Virtual Network + Sets the goal state for a Probe configuration - Remove - AzureVirtualNetworkSubnetConfig + Set + AzureLoadBalancerProbeConfig - Remove a Subnet from a Virtual Network + Sets the goal state for a Probe configuration - Remove-AzureVirtualNetworkSubnetConfig - + Set-AzureLoadBalancerProbeConfig + Name - The name of the Subnet to remove. + The name of the Probe configuration. String - VirtualNetwork + LoadBalancer - The name of the Virtual Network containing the Subnet to be removed. + The Load Balancer with which this Probe configuration will be associated. - PSVirtualNetwork + PSLoadBalancer + + + RequestPath + + The path to probe within the load balanced service to determine health. + + String + + + Protocol + + The protocol to use for probing the health of the load balanced service. + Options: Tcp or Http. + + String + + + Port + + The port on which probes should connect to the load balanced service. + + Int32 + + + IntervalInSeconds + + The interval between probes to each instance of the load balanced service. + + Int32 + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 Profile @@ -8572,10 +20525,10 @@ $vnet = New-AzurevirtualNetwork ` - + Name - The name of the Subnet to remove. + The name of the Probe configuration. String @@ -8585,115 +20538,74 @@ $vnet = New-AzurevirtualNetwork ` - VirtualNetwork + LoadBalancer - The name of the Virtual Network containing the Subnet to be removed. + The Load Balancer with which this Probe configuration will be associated. - PSVirtualNetwork + PSLoadBalancer - PSVirtualNetwork + PSLoadBalancer - Profile + RequestPath - + The path to probe within the load balanced service to determine health. - AzureProfile + String - AzureProfile + String - - - - - - - - + + Protocol - - + The protocol to use for probing the health of the load balanced service. + Options: Tcp or Http. - - - - + String - - - + String + + + + + Port - - + The port on which probes should connect to the load balanced service. - - - - - - - - - - - - - - - - - - - - Set-AzureLoadBalancer - - Sets the goal state for an Azure Load Balancer - - - - - Set - AzureLoadBalancer - - - - Sets the goal state for an Azure Load Balancer - - - - Set-AzureLoadBalancer - - LoadBalancer - - A Load Balancer object representing the goal state to which the Load Balancer should be set. - - PSLoadBalancer - - - Profile - - - - AzureProfile - - - - - - LoadBalancer + Int32 + + Int32 + + + + + + IntervalInSeconds - A Load Balancer object representing the goal state to which the Load Balancer should be set. + The interval between probes to each instance of the load balanced service. - PSLoadBalancer + Int32 - PSLoadBalancer + Int32 + + + + + + ProbeCount + + The number of per-instance consecutive failures for an instance to be considered unhealthy. + + Int32 + + Int32 @@ -8753,59 +20665,105 @@ $vnet = New-AzurevirtualNetwork ` - Set-AzureLoadBalancerFrontendIpConfig + Set-AzureLoadBalancerRuleConfig - Sets the goal state for a Frontend Ip configuration + Sets the goal state for a Load Balancer Rule configuration Set - AzureLoadBalancerFrontendIpConfig + AzureLoadBalancerRuleConfig - Sets the goal state for a Frontend Ip configuration + Sets the goal state for a Load Balancer Rule configuration - Set-AzureLoadBalancerFrontendIpConfig + Set-AzureLoadBalancerRuleConfig Name - The name of the Frontend Ip. + The name of the Load Balancer Rule String LoadBalancer - The Load Balancer object with which this Frontend Ip config will be associated. + The Load Balancer with which this Load Balancer Rule will be associated. PSLoadBalancer - PrivateIpAddress + FrontendIpConfigurationId - The private Ip address of the Load Balancer. - This can be specified only if a subnet is specified + A list of Frontend Ip Id's to associate with this Load Balancer Rule. String - SubnetId + BackendAddressPoolId - The Id of the Subnet in which this Frontend Ip will be created. + The Id of a Backend Address Pool to associate with this Load Balancer Rule. String - PublicIpAddressId + ProbeId - The Id of the Public Ip Address to associate with this Frontend Ip. + The Id of the Probe to associate with this Load Balancer Rule. + + String + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. + + String + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers String + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer Rule. + + SwitchParameter + Profile @@ -8815,42 +20773,88 @@ $vnet = New-AzurevirtualNetwork ` - Set-AzureLoadBalancerFrontendIpConfig + Set-AzureLoadBalancerRuleConfig Name - The name of the Frontend Ip. + The name of the Load Balancer Rule String LoadBalancer - The Load Balancer object with which this Frontend Ip config will be associated. + The Load Balancer with which this Load Balancer Rule will be associated. PSLoadBalancer - PrivateIpAddress + FrontendIpConfiguration - The private Ip address of the Load Balancer. - This can be specified only if a subnet is specified + A list of Frontend Ips to associate with this Load Balancer Rule. + + PSFrontendIPConfiguration + + + BackendAddressPool + + The Backend Address Pool to associate with this Load Balancer Rule. + + PSBackendAddressPool + + + Probe + + The probe to associate with this Load Balancer Rule. + + PSProbe + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. String - Subnet + FrontendPort - The Subnet object within which this Frontend Ip will be created. + The frontend port matched by this Load Balancer Rule. - PSSubnet + Int32 - PublicIpAddress + BackendPort - The Public Ip Address object to associate with this Frontend Ip. + The backend port for traffic matched by this Load Balancer Rule. - PSPublicIpAddress + Int32 + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer Rule. + + SwitchParameter Profile @@ -8865,7 +20869,7 @@ $vnet = New-AzurevirtualNetwork ` Name - The name of the Frontend Ip. + The name of the Load Balancer Rule String @@ -8877,7 +20881,7 @@ $vnet = New-AzurevirtualNetwork ` LoadBalancer - The Load Balancer object with which this Frontend Ip config will be associated. + The Load Balancer with which this Load Balancer Rule will be associated. PSLoadBalancer @@ -8887,10 +20891,9 @@ $vnet = New-AzurevirtualNetwork ` - PrivateIpAddress + FrontendIpConfigurationId - The private Ip address of the Load Balancer. - This can be specified only if a subnet is specified + A list of Frontend Ip Id's to associate with this Load Balancer Rule. String @@ -8900,9 +20903,9 @@ $vnet = New-AzurevirtualNetwork ` - SubnetId + BackendAddressPoolId - The Id of the Subnet in which this Frontend Ip will be created. + The Id of a Backend Address Pool to associate with this Load Balancer Rule. String @@ -8912,13 +20915,90 @@ $vnet = New-AzurevirtualNetwork ` - PublicIpAddressId + ProbeId - The Id of the Public Ip Address to associate with this Frontend Ip. + The Id of the Probe to associate with this Load Balancer Rule. + + String + + String + + + + + + Protocol + + The protocol matched by this Load Balancer Rule. + Options: Tcp or Udp. String - String + String + + + + + + FrontendPort + + The frontend port matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + BackendPort + + The backend port for traffic matched by this Load Balancer Rule. + + Int32 + + Int32 + + + + + + IdleTimeoutInMinutes + + The length of time in minutes for which state of conversations is maintained within the Load Balancer. + + Int32 + + Int32 + + + + + + LoadDistribution + + Specifies the load balancing distribution type to be used by the Load Balancer. +Possible values are +Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers +SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers +SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + + String + + String + + + + + + EnableFloatingIP + + Enables Direct Server Return for this Load Balancer Rule. + + SwitchParameter + + SwitchParameter @@ -8936,25 +21016,37 @@ $vnet = New-AzurevirtualNetwork ` - Subnet + FrontendIpConfiguration - The Subnet object within which this Frontend Ip will be created. + A list of Frontend Ips to associate with this Load Balancer Rule. - PSSubnet + PSFrontendIPConfiguration - PSSubnet + PSFrontendIPConfiguration - PublicIpAddress + BackendAddressPool - The Public Ip Address object to associate with this Frontend Ip. + The Backend Address Pool to associate with this Load Balancer Rule. - PSPublicIpAddress + PSBackendAddressPool - PSPublicIpAddress + PSBackendAddressPool + + + + + + Probe + + The probe to associate with this Load Balancer Rule. + + PSProbe + + PSProbe @@ -9002,146 +21094,36 @@ $vnet = New-AzurevirtualNetwork ` - Set-AzureLoadBalancerInboundNatRuleConfig + Set-AzureLocalNetworkGateway - Add a new Inbound NAT Rule to an Azure Load Balancer + Set - AzureLoadBalancerInboundNatRuleConfig + AzureLocalNetworkGateway - Add a new Inbound NAT Rule to an Azure Load Balancer + - Set-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Inbound NAT Rule. - - String - + Set-AzureLocalNetworkGateway - LoadBalancer - - The Load Balancer in which this Inbound NAT Rule will be created. - - PSLoadBalancer - - - FrontendIpConfigurationId - - A list of Frontend Ip Ids to associate with this Inbound NAT Rule. - - String - - - Protocol - - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. - - String - - - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which conversation state is maintained within the Load Balancer. - - Int32 - - - EnableFloatingIP - - Enables Direct Server Return for this Inbound NAT Rule. - - SwitchParameter - - - Profile + LocalNetworkGateway - AzureProfile - - - - Set-AzureLoadBalancerInboundNatRuleConfig - - Name - - The name of the Inbound NAT Rule. - - String - - - LoadBalancer - - The Load Balancer in which this Inbound NAT Rule will be created. - - PSLoadBalancer - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. - - PSFrontendIPConfiguration - - - Protocol - - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. - - String - - - FrontendPort - - The frontend port matched by this rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which conversation state is maintained within the Load Balancer. - - Int32 + PSLocalNetworkGateway - - EnableFloatingIP + + AddressPrefix - Enables Direct Server Return for this Inbound NAT Rule. + - SwitchParameter + List`1[String] Profile @@ -9153,99 +21135,226 @@ $vnet = New-AzurevirtualNetwork ` - - Name + + LocalNetworkGateway - The name of the Inbound NAT Rule. + - String + PSLocalNetworkGateway - String + PSLocalNetworkGateway - - LoadBalancer + + AddressPrefix - The Load Balancer in which this Inbound NAT Rule will be created. + - PSLoadBalancer + List`1[String] - PSLoadBalancer + List`1[String] - FrontendIpConfigurationId + Profile - A list of Frontend Ip Ids to associate with this Inbound NAT Rule. + - String + AzureProfile - String + AzureProfile - - Protocol + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureNetworkInterface + + Sets the goal state for an Azure Network Interface + + + + + Set + AzureNetworkInterface + + + + Sets the goal state for an Azure Network Interface + + + + Set-AzureNetworkInterface + + NetworkInterface + + A Network Interface object representing the goal state to which the Network Interface should be set. + + PSNetworkInterface + + + Profile + + + + AzureProfile + + + + + + NetworkInterface - The protocol matched by this Inbound NAT Rule. - Options: Tcp or Udp. + A Network Interface object representing the goal state to which the Network Interface should be set. - String + PSNetworkInterface - String + PSNetworkInterface - FrontendPort + Profile - The frontend port matched by this rule. + - Int32 + AzureProfile - Int32 + AzureProfile - - BackendPort - - The backend port for traffic matched by this rule. - - Int32 + + + - Int32 - + + + - - - - IdleTimeoutInMinutes - The length of time in minutes for which conversation state is maintained within the Load Balancer. + + - Int32 + + + + - Int32 - + + + - - - - EnableFloatingIP - Enables Direct Server Return for this Inbound NAT Rule. + + - SwitchParameter + + + + + + + + + + + + + + + + + + + Set-AzureNetworkSecurityGroup + + Sets the goal state for an Network Security Group + + + + + Set + AzureNetworkSecurityGroup + + + + Sets the goal state for an Network Security Group + + + + Set-AzureNetworkSecurityGroup + + NetworkSecurityGroup + + A Network Security Group object representing the goal state to which the Network Security Group should be set. + + PSNetworkSecurityGroup + + + Profile + + + + AzureProfile + + + + + + NetworkSecurityGroup + + A Network Security Group object representing the goal state to which the Network Security Group should be set. + + PSNetworkSecurityGroup - SwitchParameter + PSNetworkSecurityGroup @@ -9262,42 +21371,6 @@ $vnet = New-AzurevirtualNetwork ` - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Inbound NAT Rule. - - PSFrontendIPConfiguration - - PSFrontendIPConfiguration - - - - - - BackendIpConfigurationId - - The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule. - - string - - string - - - - - - BackendIpConfiguration - - The Ip Configuration to associate with the Backend Ip for this Inbound NAT Rule. - - psnetworkinterfaceipconfiguration - - psnetworkinterfaceipconfiguration - - - - @@ -9341,73 +21414,100 @@ $vnet = New-AzurevirtualNetwork ` - Set-AzureLoadBalancerProbeConfig + Set-AzureNetworkSecurityRuleConfig - Sets the goal state for a Probe configuration + Sets the goal state for an Network Security Rule Set - AzureLoadBalancerProbeConfig + AzureNetworkSecurityRuleConfig - Sets the goal state for a Probe configuration + Sets the goal state for an Network Security Rule - Set-AzureLoadBalancerProbeConfig + Set-AzureNetworkSecurityRuleConfig Name - The name of the Probe configuration. + The name of the Network Security Rule. String - LoadBalancer + NetworkSecurityGroup - The Load Balancer with which this Probe configuration will be associated. + The Network Security Group object containing the Network Security Rule. - PSLoadBalancer + PSNetworkSecurityGroup - - RequestPath + + Description - The path to probe within the load balanced service to determine health. + A description for this rule. Restricted to 140 characters. String Protocol - The protocol to use for probing the health of the load balanced service. - Options: Tcp or Http. + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. String - - Port + + SourcePortRange - The port on which probes should connect to the load balanced service. + Source Port or Range. Integer or range between 0 and 65535 or * to match any. - Int32 + String - - IntervalInSeconds + + DestinationPortRange - The interval between probes to each instance of the load balanced service. + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. - Int32 + String - - ProbeCount + + SourceAddressPrefix - The number of per-instance consecutive failures for an instance to be considered unhealthy. + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + DestinationAddressPrefix + + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + + String + + + Access + + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + + String + + + Priority + + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. Int32 + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + Profile @@ -9421,7 +21521,43 @@ $vnet = New-AzurevirtualNetwork ` Name - The name of the Probe configuration. + The name of the Network Security Rule. + + String + + String + + + + + + NetworkSecurityGroup + + The Network Security Group object containing the Network Security Rule. + + PSNetworkSecurityGroup + + PSNetworkSecurityGroup + + + + + + Description + + A description for this rule. Restricted to 140 characters. + + String + + String + + + + + + Protocol + + Network protocol this rule applies to. Can be Tcp, Udp or * to match both. String @@ -9430,22 +21566,22 @@ $vnet = New-AzurevirtualNetwork ` - - LoadBalancer + + SourcePortRange - The Load Balancer with which this Probe configuration will be associated. + Source Port or Range. Integer or range between 0 and 65535 or * to match any. - PSLoadBalancer + String - PSLoadBalancer + String - - RequestPath + + DestinationPortRange - The path to probe within the load balanced service to determine health. + Destination Port or Range. Integer or range between 0 and 65535 or * to match any. String @@ -9455,10 +21591,9 @@ $vnet = New-AzurevirtualNetwork ` - Protocol + SourceAddressPrefix - The protocol to use for probing the health of the load balanced service. - Options: Tcp or Http. + CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. String @@ -9467,34 +21602,34 @@ $vnet = New-AzurevirtualNetwork ` - - Port + + DestinationAddressPrefix - The port on which probes should connect to the load balanced service. + CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. - Int32 + String - Int32 + String - - IntervalInSeconds + + Access - The interval between probes to each instance of the load balanced service. + Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. - Int32 + String - Int32 + String - - ProbeCount + + Priority - The number of per-instance consecutive failures for an instance to be considered unhealthy. + Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. Int32 @@ -9503,6 +21638,18 @@ $vnet = New-AzurevirtualNetwork ` + + Direction + + The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + + String + + String + + + + Profile @@ -9558,104 +21705,29 @@ $vnet = New-AzurevirtualNetwork ` - Set-AzureLoadBalancerRuleConfig + Set-AzurePublicIpAddress - Sets the goal state for a Load Balancer Rule configuration + Sets the goal state for a Public Ip Address Set - AzureLoadBalancerRuleConfig + AzurePublicIpAddress - Sets the goal state for a Load Balancer Rule configuration + Sets the goal state for a Public Ip Address - Set-AzureLoadBalancerRuleConfig - - Name - - The name of the Load Balancer Rule - - String - + Set-AzurePublicIpAddress - LoadBalancer - - The Load Balancer with which this Load Balancer Rule will be associated. - - PSLoadBalancer - - - FrontendIpConfigurationId - - A list of Frontend Ip Id's to associate with this Load Balancer Rule. - - String - - - BackendAddressPoolId - - The Id of a Backend Address Pool to associate with this Load Balancer Rule. - - String - - - ProbeId - - The Id of the Probe to associate with this Load Balancer Rule. - - String - - - Protocol - - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. - - String - - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 - - - IdleTimeoutInMinutes - - The length of time in minutes for which state of conversations is maintained within the Load Balancer. - - Int32 - - - LoadDistribution - - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers - - String - - - EnableFloatingIP + PublicIpAddress - Enables Direct Server Return for this Load Balancer Rule. + A Public IP Address object representing the goal state to which the Public Ip Address should be set. - SwitchParameter + PSPublicIpAddress Profile @@ -9665,89 +21737,132 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map AzureProfile - - Set-AzureLoadBalancerRuleConfig - - Name - - The name of the Load Balancer Rule - - String - - - LoadBalancer - - The Load Balancer with which this Load Balancer Rule will be associated. - - PSLoadBalancer - - - FrontendIpConfiguration - - A list of Frontend Ips to associate with this Load Balancer Rule. - - PSFrontendIPConfiguration - - - BackendAddressPool - - The Backend Address Pool to associate with this Load Balancer Rule. - - PSBackendAddressPool - - - Probe - - The probe to associate with this Load Balancer Rule. - - PSProbe - - - Protocol + + + + PublicIpAddress + + A Public IP Address object representing the goal state to which the Public Ip Address should be set. + + PSPublicIpAddress + + PSPublicIpAddress + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRouteConfig + + Sets the goal state for a Route + + + + + Set + AzureRouteConfig + + + + Sets the goal state for a Route + + + + Set-AzureRouteConfig + + Name - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. + Name of the Route String - - FrontendPort - - The frontend port matched by this Load Balancer Rule. - - Int32 - - - BackendPort + + RouteTable - The backend port for traffic matched by this Load Balancer Rule. + The Route Table object with which this Route will be associated. - Int32 + PSRouteTable - IdleTimeoutInMinutes + AddressPrefix - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + The destination CIDR to which the route applies, such as 10.1.0.0/16 - Int32 + String - - LoadDistribution + + NextHopType - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. String - EnableFloatingIP + NextHopIpAddress - Enables Direct Server Return for this Load Balancer Rule. + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. - SwitchParameter + String Profile @@ -9762,7 +21877,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map Name - The name of the Load Balancer Rule + Name of the Route String @@ -9772,33 +21887,21 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - LoadBalancer - - The Load Balancer with which this Load Balancer Rule will be associated. - - PSLoadBalancer - - PSLoadBalancer - - - - - - FrontendIpConfigurationId + RouteTable - A list of Frontend Ip Id's to associate with this Load Balancer Rule. + The Route Table object with which this Route will be associated. - String + PSRouteTable - String + PSRouteTable - BackendAddressPoolId + AddressPrefix - The Id of a Backend Address Pool to associate with this Load Balancer Rule. + The destination CIDR to which the route applies, such as 10.1.0.0/16 String @@ -9807,10 +21910,16 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - ProbeId + + NextHopType - The Id of the Probe to associate with this Load Balancer Rule. + The type of Azure hop the packet should be sent to. +Possible values are: +VirtualNetworkGateway: Represents an Azure S2S VPN Gateway. +VnetLocal: Represents the local virtual network. For instance, if you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, the route for each subnet in the route table will have a next hop value of Local. +Internet: Represents the default Internet gateway provided by the Azure Infrastructure +VirtualAppliance: Represents a virtual appliance you added to your Azure virtual network. +None: Represents a black hole. Packets forwarded to a black hole will not be forwarded at all. String @@ -9820,10 +21929,9 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Protocol + NextHopIpAddress - The protocol matched by this Load Balancer Rule. - Options: Tcp or Udp. + Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. String @@ -9833,65 +21941,100 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - FrontendPort + Profile - The frontend port matched by this Load Balancer Rule. + - Int32 + AzureProfile - Int32 + AzureProfile - - BackendPort - - The backend port for traffic matched by this Load Balancer Rule. - - Int32 + + + - Int32 - + + + - - - - IdleTimeoutInMinutes - The length of time in minutes for which state of conversations is maintained within the Load Balancer. + - Int32 + + + + - Int32 - + + + - - - - LoadDistribution - Specifies the load balancing distribution type to be used by the Load Balancer. -Possible values are -Default – The load balancer is configured to use a 5 tuple hash to map traffic to available servers -SourceIP – The load balancer is configured to use a 2 tuple hash to map traffic to available servers -SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map traffic to available servers + - String - - String - - - - - - EnableFloatingIP + + + + + + + + + + + + + + + + + + + Set-AzureRouteTable + + Sets the goal state for an Azure Route Table + + + + + Set + AzureRouteTable + + + + Sets the goal state for an Azure Route Table + + + + Set-AzureRouteTable + + RouteTable + + A Route Table object representing the goal state to which the Route Table should be set. + + PSRouteTable + + + Profile + + + + AzureProfile + + + + + + RouteTable - Enables Direct Server Return for this Load Balancer Rule. + A Route Table object representing the goal state to which the Route Table should be set. - SwitchParameter + PSRouteTable - SwitchParameter + PSRouteTable @@ -9908,38 +22051,101 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - FrontendIpConfiguration + + + + + + + + - A list of Frontend Ips to associate with this Load Balancer Rule. + - PSFrontendIPConfiguration + + + + - PSFrontendIPConfiguration - + + + - - - - BackendAddressPool - The Backend Address Pool to associate with this Load Balancer Rule. + + + + + + + + + + + + + + + + + + + + + Set-AzureVirtualNetwork + + Sets the goal state for an Azure Virtual Network + + + + + Set + AzureVirtualNetwork + + + + Sets the goal state for an Azure Virtual Network + + + + Set-AzureVirtualNetwork + + VirtualNetwork + + A Virtual Network object representing the goal state to which the Virtual Network should be set. + + PSVirtualNetwork + + + Profile + + + + AzureProfile + + + + + + VirtualNetwork + + A Virtual Network object representing the goal state to which the Virtual Network should be set. - PSBackendAddressPool + PSVirtualNetwork - PSBackendAddressPool + PSVirtualNetwork - Probe + Profile - The probe to associate with this Load Balancer Rule. + - PSProbe + AzureProfile - PSProbe + AzureProfile @@ -9987,29 +22193,36 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzureNetworkInterface + Set-AzureVirtualNetworkGatewayConnection - Sets the goal state for an Azure Network Interface + Set - AzureNetworkInterface + AzureVirtualNetworkGatewayConnection - Sets the goal state for an Azure Network Interface + - Set-AzureNetworkInterface + Set-AzureVirtualNetworkGatewayConnection - NetworkInterface + VirtualNetworkGatewayConnection - A Network Interface object representing the goal state to which the Network Interface should be set. + - PSNetworkInterface + PSVirtualNetworkGatewayConnection + + + Force + + + + SwitchParameter Profile @@ -10022,13 +22235,25 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - NetworkInterface + VirtualNetworkGatewayConnection - A Network Interface object representing the goal state to which the Network Interface should be set. + - PSNetworkInterface + PSVirtualNetworkGatewayConnection - PSNetworkInterface + PSVirtualNetworkGatewayConnection + + + + + + Force + + + + SwitchParameter + + SwitchParameter @@ -10054,8 +22279,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10067,8 +22291,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10088,29 +22311,50 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzureNetworkSecurityGroup + Set-AzureVirtualNetworkGatewayConnectionSharedKey - Sets the goal state for an Network Security Group + Set - AzureNetworkSecurityGroup + AzureVirtualNetworkGatewayConnectionSharedKey - Sets the goal state for an Network Security Group + - Set-AzureNetworkSecurityGroup - - NetworkSecurityGroup + Set-AzureVirtualNetworkGatewayConnectionSharedKey + + Name - A Network Security Group object representing the goal state to which the Network Security Group should be set. + - PSNetworkSecurityGroup + String + + + ResourceGroupName + + + + String + + + Value + + + + String + + + Force + + + + SwitchParameter Profile @@ -10122,14 +22366,50 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - NetworkSecurityGroup + + Name - A Network Security Group object representing the goal state to which the Network Security Group should be set. + - PSNetworkSecurityGroup + String - PSNetworkSecurityGroup + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Value + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter @@ -10187,97 +22467,100 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzureNetworkSecurityRuleConfig + Set-AzureVirtualNetworkSubnetConfig - Sets the goal state for an Network Security Rule + Sets the goal state for a Subnet within an Azure Virtual Network Set - AzureNetworkSecurityRuleConfig + AzureVirtualNetworkSubnetConfig - Sets the goal state for an Network Security Rule + Sets the goal state for a Subnet within an Azure Virtual Network - Set-AzureNetworkSecurityRuleConfig + Set-AzureVirtualNetworkSubnetConfig Name - The name of the Network Security Rule. + The name of the Subnet. String - NetworkSecurityGroup + VirtualNetwork - The Network Security Group object containing the Network Security Rule. + The Virtual Network containing the Subnet. - PSNetworkSecurityGroup + PSVirtualNetwork - - Description + + AddressPrefix - A description for this rule. Restricted to 140 characters. + The IP range covered by this Subnet. String - - Protocol + + NetworkSecurityGroup - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + The Network Security Group object containing ACLs that will apply to this Subnet. - String + PSNetworkSecurityGroup - - SourcePortRange + + RouteTable - Source Port or Range. Integer or range between 0 and 65535 or * to match any. + The Route Table object containing Routes that will apply to this Subnet. - String + PSRouteTable - DestinationPortRange + Profile - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + - String + AzureProfile - - SourceAddressPrefix + + + Set-AzureVirtualNetworkSubnetConfig + + Name - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + The name of the Subnet. String - - DestinationAddressPrefix + + VirtualNetwork - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + The Virtual Network containing the Subnet. - String + PSVirtualNetwork - - Access + + AddressPrefix - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + The IP range covered by this Subnet. String - - Priority + + NetworkSecurityGroupId - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + A reference to a Network Security Group containing ACLs that will apply to this Subnet. - Int32 + String - - Direction + + RouteTableId - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + A reference to a Route Table object containing Routes that will apply to this Subnet. String @@ -10286,39 +22569,15 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - AzureProfile - - - - - - Name - - The name of the Network Security Rule. - - String - - String - - - - - - NetworkSecurityGroup - - The Network Security Group object containing the Network Security Rule. - - PSNetworkSecurityGroup - - PSNetworkSecurityGroup - - - - - - Description + AzureProfile + + + + + + Name - A description for this rule. Restricted to 140 characters. + The name of the Subnet. String @@ -10327,22 +22586,22 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Protocol + + VirtualNetwork - Network protocol this rule applies to. Can be Tcp, Udp or * to match both. + The Virtual Network containing the Subnet. - String + PSVirtualNetwork - String + PSVirtualNetwork - - SourcePortRange + + AddressPrefix - Source Port or Range. Integer or range between 0 and 65535 or * to match any. + The IP range covered by this Subnet. String @@ -10351,46 +22610,46 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - DestinationPortRange + + NetworkSecurityGroup - Destination Port or Range. Integer or range between 0 and 65535 or * to match any. + The Network Security Group object containing ACLs that will apply to this Subnet. - String + PSNetworkSecurityGroup - String + PSNetworkSecurityGroup - - SourceAddressPrefix + + RouteTable - CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + The Route Table object containing Routes that will apply to this Subnet. - String + PSRouteTable - String + PSRouteTable - DestinationAddressPrefix + Profile - CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. + - String + AzureProfile - String + AzureProfile - - Access + + NetworkSecurityGroupId - Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. + A reference to a Network Security Group containing ACLs that will apply to this Subnet. String @@ -10399,22 +22658,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - Priority - - Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. - - Int32 - - Int32 - - - - - - Direction + + RouteTableId - The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”. + A reference to a Route Table object containing Routes that will apply to this Subnet. String @@ -10424,13 +22671,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Profile + DnsServer - + The Dns servers to be used for performing Dns lookups from this Subnet. - AzureProfile + list`1[string] - AzureProfile + list`1[string] @@ -10444,7 +22691,8 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + + @@ -10456,7 +22704,8 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - + + @@ -10476,29 +22725,29 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzurePublicIpAddress + Start-AzureApplicationGateway - Sets the goal state for a Public Ip Address + - Set - AzurePublicIpAddress + Start + AzureApplicationGateway - Sets the goal state for a Public Ip Address + - Set-AzurePublicIpAddress + Start-AzureApplicationGateway - PublicIpAddress + ApplicationGateway - A Public IP Address object representing the goal state to which the Public Ip Address should be set. + - PSPublicIpAddress + PSApplicationGateway Profile @@ -10511,13 +22760,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - PublicIpAddress + ApplicationGateway - A Public IP Address object representing the goal state to which the Public Ip Address should be set. + - PSPublicIpAddress + PSApplicationGateway - PSPublicIpAddress + PSApplicationGateway @@ -10543,8 +22792,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10556,8 +22804,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10577,29 +22824,29 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzureVirtualNetwork + Stop-AzureApplicationGateway - Sets the goal state for an Azure Virtual Network + - Set - AzureVirtualNetwork + Stop + AzureApplicationGateway - Sets the goal state for an Azure Virtual Network + - Set-AzureVirtualNetwork + Stop-AzureApplicationGateway - VirtualNetwork + ApplicationGateway - A Virtual Network object representing the goal state to which the Virtual Network should be set. + - PSVirtualNetwork + PSApplicationGateway Profile @@ -10612,13 +22859,13 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - VirtualNetwork + ApplicationGateway - A Virtual Network object representing the goal state to which the Virtual Network should be set. + - PSVirtualNetwork + PSApplicationGateway - PSVirtualNetwork + PSApplicationGateway @@ -10644,8 +22891,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10657,8 +22903,7 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - + @@ -10678,86 +22923,35 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Set-AzureVirtualNetworkSubnetConfig + Test-AzureDnsAvailability - Sets the goal state for a Subnet within an Azure Virtual Network + Checks whether a domain name in the cloudapp.net zone is available for use - Set - AzureVirtualNetworkSubnetConfig + Test + AzureDnsAvailability - Sets the goal state for a Subnet within an Azure Virtual Network + Checks whether a domain name in the {region}.cloudapp.azure.com zone is available for use - Set-AzureVirtualNetworkSubnetConfig - - Name - - The name of the Subnet. - - String - - - VirtualNetwork - - The Virtual Network containing the Subnet. - - PSVirtualNetwork - - - AddressPrefix - - The IP range covered by this Subnet. - - String - - - NetworkSecurityGroup - - The Network Security Group object containing ACLs that will apply to this Subnet. - - PSNetworkSecurityGroup - - - Profile - - - - AzureProfile - - - - Set-AzureVirtualNetworkSubnetConfig + Test-AzureDnsAvailability - Name + DomainQualifiedName - The name of the Subnet. + The domain name to be verified. + It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. String - - VirtualNetwork - - The Virtual Network containing the Subnet. - - PSVirtualNetwork - - AddressPrefix - - The IP range covered by this Subnet. - - String - - - NetworkSecurityGroupId + Location - A reference to a Network Security Group containing ACLs that will apply to this Subnet. + The Azure Region in which you wish to check for availability. String @@ -10772,9 +22966,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - Name + DomainQualifiedName - The name of the Subnet. + The domain name to be verified. + It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. String @@ -10783,22 +22978,10 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - VirtualNetwork - - The Virtual Network containing the Subnet. - - PSVirtualNetwork - - PSVirtualNetwork - - - - - AddressPrefix + Location - The IP range covered by this Subnet. + The Azure Region in which you wish to check for availability. String @@ -10807,18 +22990,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - NetworkSecurityGroup - - The Network Security Group object containing ACLs that will apply to this Subnet. - - PSNetworkSecurityGroup - - PSNetworkSecurityGroup - - - - Profile @@ -10831,30 +23002,6 @@ SourceIPProtocol– The load balancer is configured to use a 3 tuple hash to map - - NetworkSecurityGroupId - - A reference to a Network Security Group containing ACLs that will apply to this Subnet. - - String - - String - - - - - - DnsServer - - The Dns servers to be used for performing Dns lookups from this Subnet. - - list`1[string] - - list`1[string] - - - - diff --git a/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs b/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs index 77b31e9d888f..353a799ac28e 100644 --- a/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs @@ -17,7 +17,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyTitle("Microsoft Azure Powershell - Resource Manager")] +[assembly: AssemblyTitle("Microsoft Azure Powershell - Network Resource Manager")] [assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] [assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] [assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] diff --git a/src/ResourceManager/Network/Commands.Network/packages.config b/src/ResourceManager/Network/Commands.Network/packages.config index ad2e561da85a..be09a0a4e404 100644 --- a/src/ResourceManager/Network/Commands.Network/packages.config +++ b/src/ResourceManager/Network/Commands.Network/packages.config @@ -9,7 +9,7 @@ - + diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj index bd6afa293fc2..2debaea91b7d 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config index a85c4a2abead..e7b3325db49f 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj index cb725f9adab1..bceda64f8cba 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config index fcb8ddb83d66..b13cfe99dba7 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj index 9abf861c6933..0b1c78317647 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj +++ b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config index 98cacc8430a0..783e71d7833a 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config +++ b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj b/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj index 62dc65e047a7..d4d4d015ab09 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj +++ b/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config b/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config index 9a41d3447f98..85a5943532bd 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config +++ b/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj index f38983522820..06d18c3518b2 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj +++ b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj @@ -70,7 +70,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll @@ -306,6 +306,9 @@ PreserveNewest + + Always + Always diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs index 860fd5da2a68..33bebcd08c8a 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs +++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs @@ -108,6 +108,32 @@ public void TestGetADGroupWithObjectId() TestUtilities.GetCurrentMethodName()); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetADGroupSecurityEnabled() + { + const string scriptMethod = "Test-GetADGroupSecurityEnabled '{0}' '{1}'"; + Group newGroup = null; + var controllerAdmin = ResourcesController.NewInstance; + + controllerAdmin.RunPsTestWorkflow( + // scriptBuilder + () => + { + newGroup = CreateNewAdGroup(controllerAdmin); + return new[] { string.Format(scriptMethod, newGroup.ObjectId, newGroup.SecurityEnabled) }; + }, + // initialize + null, + // cleanup + () => + { + DeleteAdGroup(controllerAdmin, newGroup); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetADGroupWithBadObjectId() diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 index 972084637f46..b6124abb6a2c 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 +++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 @@ -78,6 +78,24 @@ function Test-GetADGroupWithObjectId Assert-NotNull($groups[0].DisplayName) } +<# +.SYNOPSIS +Tests getting Active Directory group with security enabled . +#> +function Test-GetADGroupSecurityEnabled +{ + param([string]$objectId, [string]$securityEnabled) + + # Test + $groups = Get-AzureADGroup -ObjectId $objectId + + # Assert + Assert-AreEqual $groups.Count 1 + Assert-AreEqual $groups[0].Id $objectId + Assert-AreEqual $groups[0].SecurityEnabled $securityEnabled + Assert-NotNull($groups[0].DisplayName) +} + <# .SYNOPSIS Tests getting Active Directory groups. diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json new file mode 100644 index 000000000000..9bc5d1eee118 --- /dev/null +++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json @@ -0,0 +1,237 @@ +{ + "Entries": [ + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHM/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"displayName\": \"adgroup6035\",\r\n \"mailEnabled\": false,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"securityEnabled\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "127" + ], + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.Group/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.Group\",\r\n \"objectType\": \"Group\",\r\n \"objectId\": \"0b7e4247-de60-405c-9c04-6cc9721539a1\",\r\n \"softDeletionTimestamp\": null,\r\n \"appMetadata\": null,\r\n \"exchangeResources\": [],\r\n \"description\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"adgroup6035\",\r\n \"groupType\": null,\r\n \"isPublic\": null,\r\n \"lastDirSyncTime\": null,\r\n \"licenseAssignment\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"mailEnabled\": false,\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"securityEnabled\": true,\r\n \"sharepointResources\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "p26FZwHhWTf12W1XQXK+GyAVGWe+soGFePh6Rq4qHrI=" + ], + "request-id": [ + "3a6f6342-c8fa-4e0a-95f1-684e1804c4b0" + ], + "client-request-id": [ + "9663327c-670b-4f78-9eca-0aa9ee4e4c1a" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "CxL0SUxsw4WnJVmlwroRNjovfpfYLZPQIunngNXUsC6mZOmMq1-YKykQNSBVLb2fzsD7k7DAlVXzQ2Ui5pGs1aDPLo7FC6muKk1Ghbi2V7ub9RICbzNAK1a08grMzvXX94Q2JPOpxwGmfaDhBmbPDg.6RPP7LGnF2_VC2CkQQEtp8zagjFfcy386N5GtNaSbcY" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Location": [ + "https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/directoryObjects/0b7e4247-de60-405c-9c04-6cc9721539a1/Microsoft.WindowsAzure.ActiveDirectory.Group" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups/0b7e4247-de60-405c-9c04-6cc9721539a1?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHMvMGI3ZTQyNDctZGU2MC00MDVjLTljMDQtNmNjOTcyMTUzOWExP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.Group/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.Group\",\r\n \"objectType\": \"Group\",\r\n \"objectId\": \"0b7e4247-de60-405c-9c04-6cc9721539a1\",\r\n \"softDeletionTimestamp\": null,\r\n \"appMetadata\": null,\r\n \"exchangeResources\": [],\r\n \"description\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"adgroup6035\",\r\n \"groupType\": null,\r\n \"isPublic\": null,\r\n \"lastDirSyncTime\": null,\r\n \"licenseAssignment\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"mailEnabled\": false,\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"securityEnabled\": true,\r\n \"sharepointResources\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "vhYgA4yOUvjGnawHsDLVJznXNq0HF1intYYZGiD8RqA=" + ], + "request-id": [ + "fcfc812f-4c75-4050-a26d-13319ea6a584" + ], + "client-request-id": [ + "e2cbd040-d98a-489a-9ce9-d2256e485035" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "cDC4lcRcPV6FLoN7Gd_FKWd7XvI78lkKeJxpz9UibQmAqFRy5vBuc_PpkyW-yB-BuWl033MW-AQ-i6rWNItLO92wDzEd2t-hFwl7VWswVo-fAwkZ5H4CiGTePIOpE1GpE6j2vkhEYI7MLOshQnayfg.k9Tz72L20M2yv4kgOIEDIPaY0qfEHdBsM33mTfekIMo" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups/0b7e4247-de60-405c-9c04-6cc9721539a1?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHMvMGI3ZTQyNDctZGU2MC00MDVjLTljMDQtNmNjOTcyMTUzOWExP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "p26FZwHhWTf12W1XQXK+GyAVGWe+soGFePh6Rq4qHrI=" + ], + "request-id": [ + "5d694c7d-a5b3-4598-9a2e-13ec7647d942" + ], + "client-request-id": [ + "89e4709f-c962-42bf-b703-df5180ec3cf2" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "U2xkwifbpzW18YgrT01D0Z0Jb7sN55yzRIkX3Ok355EEVR1Yehs4jYQL_t5I-WyXYQQAGsEasX5GDadld9N8TljR-gJH2Z98wXMZ4mCqaLNAtxwuoN8Fqv1njzKiEazRobH2UuaBsRgQLqIB2Oxl5Q.99_JDq-Z8uaz1-CCXjpdINoQYBRW_HUwqjn4M3snDTE" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "1.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateNewAdGroup": [ + "adgroup6035", + "adgroupmail8751" + ] + }, + "Variables": { + "SubscriptionId": "83ff500d-38ad-4a36-a26b-f500be74b250", + "TenantId": "73bf5eac-7be2-4c8c-b3eb-9cc4aa201100", + "Domain": "aztestorg067.ccsctp.net" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config index f9b4b985877e..73ecc0fe3af6 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config +++ b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 8c1cc8558860..3cb5633edfd6 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = '81d522a4-6e5d-4105-8f58-376204c47458' @@ -65,7 +65,7 @@ FormatsToProcess = @( '.\Resources\Microsoft.WindowsAzure.Commands.Profile.format.ps1xml', '.\DataFactories\Microsoft.Azure.Commands.DataFactories.format.ps1xml', '.\RedisCache\Microsoft.Azure.Commands.RedisCache.format.ps1xml', - '.\Batch\Microsoft.Azure.Commands.Batch.format.ps1xml', + '.\AzureBatch\Microsoft.Azure.Commands.Batch.format.ps1xml', '.\KeyVault\Microsoft.Azure.Commands.KeyVault.format.ps1xml', '.\StreamAnalytics\Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml', '.\Compute\Microsoft.Azure.Commands.Compute.format.ps1xml', @@ -87,7 +87,7 @@ NestedModules = @( '.\Sql\Microsoft.Azure.Commands.Sql.dll', '.\DataFactories\Microsoft.Azure.Commands.DataFactories.dll', '.\RedisCache\Microsoft.Azure.Commands.RedisCache.dll', - '.\Batch\Microsoft.Azure.Commands.Batch.dll', + '.\AzureBatch\Microsoft.Azure.Commands.Batch.dll', '.\Dns\Microsoft.Azure.Commands.Dns.dll', '.\KeyVault\Microsoft.Azure.Commands.KeyVault.dll', '.\TrafficManager\Microsoft.Azure.Commands.TrafficManager.dll', diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj index 9a897b6d0265..08d91354ed46 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj +++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj @@ -74,7 +74,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs index 3eaedadaccf0..59f2b4f10cc4 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs @@ -60,7 +60,8 @@ public static PSADObject ToPSADObject(this AADObject obj) { DisplayName = obj.DisplayName, Type = obj.ObjectType, - Id = new Guid(obj.ObjectId)/*, + Id = new Guid(obj.ObjectId), + SecurityEnabled = obj.SecurityEnabled/*, Mail = group.Mail*/ }; @@ -101,7 +102,8 @@ public static PSADGroup ToPSADGroup(this Group group) return new PSADGroup() { DisplayName = group.DisplayName, - Id = new Guid(group.ObjectId)/*, + Id = new Guid(group.ObjectId), + SecurityEnabled = group.SecurityEnabled/*, Mail = group.Mail*/ }; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs index 2a705cec6a64..7b9fa4f109c7 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs @@ -17,5 +17,7 @@ namespace Microsoft.Azure.Commands.Resources.Models.ActiveDirectory public class PSADGroup : PSADObject { public string Mail { get; set; } + + public bool? SecurityEnabled { get; set; } } } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs index 458e4a3106c1..51043c6f6dfd 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs @@ -278,6 +278,26 @@ public Dictionary ParseTemplateParameterFileCon return parameters; } + public Dictionary ParseTemplateParameterContent(string templateParameterContent) + { + Dictionary parameters = new Dictionary(); + + if (!string.IsNullOrEmpty(templateParameterContent)) + { + try + { + parameters = JsonConvert.DeserializeObject>(templateParameterContent); + } + catch (JsonSerializationException) + { + parameters = new Dictionary( + JsonConvert.DeserializeObject(templateParameterContent).Parameters); + } + } + + return parameters; + } + private RuntimeDefinedParameterDictionary ParseTemplateAndExtractParameters(string templateContent, Hashtable templateParameterObject, string templateParameterFilePath, string[] staticParameters) { RuntimeDefinedParameterDictionary dynamicParameters = new RuntimeDefinedParameterDictionary(); @@ -315,6 +335,11 @@ private RuntimeDefinedParameterDictionary ParseTemplateAndExtractParameters(stri var parametersFromFile = ParseTemplateParameterFileContents(templateParameterFilePath); UpdateParametersWithObject(dynamicParameters, new Hashtable(parametersFromFile)); } + if (templateParameterFilePath != null && Uri.IsWellFormedUriString(templateParameterFilePath, UriKind.Absolute)) + { + var parametersFromUri = ParseTemplateParameterContent(GeneralUtilities.DownloadFile(templateParameterFilePath)); + UpdateParametersWithObject(dynamicParameters, new Hashtable(parametersFromUri)); + } return dynamicParameters; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs index e8379a084db6..b3b090b326ed 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs @@ -329,12 +329,41 @@ private Deployment CreateBasicDeployment(ValidatePSResourceGroupDeploymentParame Deployment deployment = new Deployment { Properties = new DeploymentProperties { - Mode = deploymentMode, - Template = GetTemplate(parameters.TemplateFile, parameters.GalleryTemplateIdentity), - Parameters = GetDeploymentParameters(parameters.TemplateParameterObject) + Mode = deploymentMode } }; + if (Uri.IsWellFormedUriString(parameters.TemplateFile, UriKind.Absolute)) + { + deployment.Properties.TemplateLink = new TemplateLink + { + Uri = new Uri(parameters.TemplateFile) + }; + } + else if (!string.IsNullOrEmpty(parameters.GalleryTemplateIdentity)) + { + deployment.Properties.TemplateLink = new TemplateLink + { + Uri = new Uri(GalleryTemplatesClient.GetGalleryTemplateFile(parameters.GalleryTemplateIdentity)) + }; + } + else + { + deployment.Properties.Template = FileUtilities.DataStore.ReadFileAsText(parameters.TemplateFile); + } + + if (Uri.IsWellFormedUriString(parameters.ParameterUri, UriKind.Absolute)) + { + deployment.Properties.ParametersLink = new ParametersLink + { + Uri = new Uri(parameters.ParameterUri) + }; + } + else + { + deployment.Properties.Parameters = GetDeploymentParameters(parameters.TemplateParameterObject); + } + return deployment; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs index 07585cd05981..33ceac142058 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs @@ -32,10 +32,13 @@ public abstract class ResourceWithParameterBaseCmdlet : ResourcesBaseCmdlet protected const string BaseParameterSetName = "Default"; protected const string GalleryTemplateParameterObjectParameterSetName = "Deployment via Gallery and template parameters object"; protected const string GalleryTemplateParameterFileParameterSetName = "Deployment via Gallery and template parameters file"; + protected const string GalleryTemplateParameterUriParameterSetName = "Deployment via Gallery and template parameters uri"; protected const string TemplateFileParameterObjectParameterSetName = "Deployment via template file and template parameters object"; protected const string TemplateFileParameterFileParameterSetName = "Deployment via template file and template parameters file"; + protected const string TemplateFileParameterUriParameterSetName = "Deployment via template file template parameters uri"; protected const string TemplateUriParameterObjectParameterSetName = "Deployment via template uri and template parameters object"; protected const string TemplateUriParameterFileParameterSetName = "Deployment via template uri and template parameters file"; + protected const string TemplateUriParameterUriParameterSetName = "Deployment via template uri and template parameters uri"; protected const string ParameterlessTemplateFileParameterSetName = "Deployment via template file without parameters"; protected const string ParameterlessGalleryTemplateParameterSetName = "Deployment via Gallery without parameters"; protected const string ParameterlessTemplateUriParameterSetName = "Deployment via template uri without parameters"; @@ -71,10 +74,21 @@ protected ResourceWithParameterBaseCmdlet() [ValidateNotNullOrEmpty] public string TemplateParameterFile { get; set; } + [Parameter(ParameterSetName = GalleryTemplateParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [Parameter(ParameterSetName = TemplateUriParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [ValidateNotNullOrEmpty] + public string TemplateParameterUri { get; set; } + [Parameter(ParameterSetName = GalleryTemplateParameterObjectParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [Parameter(ParameterSetName = GalleryTemplateParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] + [Parameter(ParameterSetName = GalleryTemplateParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [Parameter(ParameterSetName = ParameterlessGalleryTemplateParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [ValidateNotNullOrEmpty] @@ -84,6 +98,8 @@ protected ResourceWithParameterBaseCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [Parameter(ParameterSetName = TemplateFileParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [Parameter(ParameterSetName = ParameterlessTemplateFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [ValidateNotNullOrEmpty] @@ -93,17 +109,21 @@ protected ResourceWithParameterBaseCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [Parameter(ParameterSetName = TemplateUriParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] + [Parameter(ParameterSetName = TemplateUriParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [Parameter(ParameterSetName = ParameterlessTemplateUriParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [ValidateNotNullOrEmpty] public string TemplateUri { get; set; } [Parameter(ParameterSetName = TemplateFileParameterObjectParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [Parameter(ParameterSetName = TemplateFileParameterFileParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [Parameter(ParameterSetName = ParameterlessTemplateFileParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [ValidateNotNullOrEmpty] public string StorageAccountName { get; set; } @@ -141,31 +161,64 @@ public object GetDynamicParameters() !GalleryTemplateIdentity.Equals(galleryTemplateName, StringComparison.OrdinalIgnoreCase)) { galleryTemplateName = GalleryTemplateIdentity; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( - GalleryTemplateIdentity, - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if(string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( + GalleryTemplateIdentity, + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( + GalleryTemplateIdentity, + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } else if (!string.IsNullOrEmpty(TemplateFile) && !TemplateFile.Equals(templateFile, StringComparison.OrdinalIgnoreCase)) { templateFile = TemplateFile; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( - this.TryResolvePath(TemplateFile), - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if (string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + this.TryResolvePath(TemplateFile), + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + this.TryResolvePath(TemplateFile), + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } else if (!string.IsNullOrEmpty(TemplateUri) && !TemplateUri.Equals(templateUri, StringComparison.OrdinalIgnoreCase)) { templateUri = TemplateUri; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( - TemplateUri, - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if (string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + TemplateUri, + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + TemplateUri, + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } return dynamicParameters; diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs index 8d9c9c3d913e..c1b8f40081fd 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs @@ -26,6 +26,8 @@ public class ValidatePSResourceGroupDeploymentParameters public Hashtable TemplateParameterObject { get; set; } + public string ParameterUri { get; set; } + public string TemplateVersion { get; set; } public string StorageAccountName { get; set; } diff --git a/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs b/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs index 3edb04bcd9d9..acf6650971c9 100644 --- a/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs +++ b/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs @@ -56,6 +56,7 @@ public override void ExecuteCmdlet() GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), + ParameterUri = TemplateParameterUri, TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName }; diff --git a/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs b/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs index e6cd93adced3..d1b743791b85 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs @@ -46,6 +46,7 @@ public override void ExecuteCmdlet() GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), + ParameterUri = TemplateParameterUri, TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName }; diff --git a/src/ResourceManager/Resources/Commands.Resources/packages.config b/src/ResourceManager/Resources/Commands.Resources/packages.config index 47996cddc464..054f506a17b6 100644 --- a/src/ResourceManager/Resources/Commands.Resources/packages.config +++ b/src/ResourceManager/Resources/Commands.Resources/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj index 61fea4117b4e..79d82ace197a 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj @@ -37,7 +37,7 @@ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.1.3-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll - ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll + ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.1-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll True @@ -51,7 +51,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll @@ -87,6 +87,10 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll + + ..\..\..\packages\Microsoft.WindowsAzure.Management.Scheduler.6.2.0\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll + True + False ..\..\..\packages\Hydra.SpecTestSupport.1.0.5417.13285-prerelease\lib\net45\Microsoft.WindowsAzure.Testing.dll diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs index e7fe07614ed7..f94dd9e8b804 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs @@ -23,6 +23,7 @@ using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Microsoft.WindowsAzure.Commands.Utilities.Common; +using Microsoft.WindowsAzure.Management.Scheduler; using Microsoft.Azure.Management.RecoveryServices; using Microsoft.Azure.Management.SiteRecovery; using Microsoft.Azure.Test; @@ -41,6 +42,7 @@ public abstract class SiteRecoveryTestsBase public SiteRecoveryManagementClient SiteRecoveryMgmtClient { get; private set; } public RecoveryServicesManagementClient RecoveryServicesMgmtClient { get; private set; } + public CloudServiceManagementClient CloudServiceManagementClient { get; private set; } protected SiteRecoveryTestsBase() { @@ -82,10 +84,11 @@ protected SiteRecoveryTestsBase() protected void SetupManagementClients() { + CloudServiceManagementClient = GetCloudServicesManagementClient(); RecoveryServicesMgmtClient = GetRecoveryServicesManagementClient(); SiteRecoveryMgmtClient = GetSiteRecoveryManagementClient(); - helper.SetupManagementClients(RecoveryServicesMgmtClient, SiteRecoveryMgmtClient); + helper.SetupManagementClients(CloudServiceManagementClient, RecoveryServicesMgmtClient, SiteRecoveryMgmtClient); } protected void RunPowerShellTest(params string[] scripts) @@ -98,7 +101,7 @@ protected void RunPowerShellTest(params string[] scripts) SetupManagementClients(); - helper.SetupEnvironment(AzureModule.AzureServiceManagement); + helper.SetupEnvironment(AzureModule.AzureResourceManager); helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1"); @@ -106,9 +109,17 @@ protected void RunPowerShellTest(params string[] scripts) } } + private CloudServiceManagementClient GetCloudServicesManagementClient() + { + return TestBase.GetServiceClient(this.armTestFactory); + } + private RecoveryServicesManagementClient GetRecoveryServicesManagementClient() { - return TestBase.GetServiceClient(this.armTestFactory); + return new RecoveryServicesManagementClient( + "Microsoft.SiteRecovery", + CloudServiceManagementClient.Credentials, + CloudServiceManagementClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } private SiteRecoveryManagementClient GetSiteRecoveryManagementClient() @@ -122,11 +133,11 @@ private SiteRecoveryManagementClient GetSiteRecoveryManagementClient() } return new SiteRecoveryManagementClient( - asrVaultCreds.ResourceGroupName, asrVaultCreds.ResourceName, asrVaultCreds.ResourceGroupName, - RecoveryServicesMgmtClient.Credentials, - RecoveryServicesMgmtClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); + "Microsoft.SiteRecovery", + CloudServiceManagementClient.Credentials, + CloudServiceManagementClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } private static bool IgnoreCertificateErrorHandler diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials index 8b84da7b59fb..6e9fb9df5d2f 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials @@ -1 +1 @@ -00a07ea0-ad8b-491c-9de8-77bf10881499HyperVRecoveryManagerVaultppeVault2accesscontrol.windows.netwusppe1rrp1usershttp://windowscloudbackup/m3tmPfTki5UFSdaEq2JFvzuw==testsitegroup1.0 +00a07ea0-ad8b-491c-9de8-77bf10881499HyperVRecoveryManagerVaultppeVault3accesscontrol.windows.netwusppe1rrp1usershttp://windowscloudbackup/m346mwOXc2yrH0ObMi6CO7Ng==testsitegroup1.0 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json index 3cca932198f5..68d68d2bc8ff 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14971" ], "x-ms-request-id": [ - "4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "x-ms-correlation-request-id": [ - "4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092819Z:4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "CENTRALUS:20150819T023102Z:c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:19 GMT" + "Wed, 19 Aug 2015 02:31:02 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14969" ], "x-ms-request-id": [ - "acf463df-805e-4fd2-a556-27c7569dad2c" + "cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "x-ms-correlation-request-id": [ - "acf463df-805e-4fd2-a556-27c7569dad2c" + "cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092821Z:acf463df-805e-4fd2-a556-27c7569dad2c" + "CENTRALUS:20150819T023104Z:cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14966" ], "x-ms-request-id": [ - "716c5765-edce-418f-9b41-3a5aaa5b91e8" + "599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "x-ms-correlation-request-id": [ - "716c5765-edce-418f-9b41-3a5aaa5b91e8" + "599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:716c5765-edce-418f-9b41-3a5aaa5b91e8" + "CENTRALUS:20150819T023105Z:599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:22 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14964" ], "x-ms-request-id": [ - "bb0f0058-7804-465e-a5bc-bca92aa09497" + "7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "x-ms-correlation-request-id": [ - "bb0f0058-7804-465e-a5bc-bca92aa09497" + "7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092826Z:bb0f0058-7804-465e-a5bc-bca92aa09497" + "CENTRALUS:20150819T023108Z:7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:07 GMT" ] }, "StatusCode": 200 @@ -211,19 +211,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0754e060-5739-4f4a-a664-3290b41530fb-2015-07-28 09:28:19Z-P" + "8d9e80fd-fc97-43d7-9309-b2b6ac1d099e-2015-08-19 02:31:02Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -235,28 +235,28 @@ "no-cache" ], "x-ms-request-id": [ - "7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "x-ms-client-request-id": [ - "0754e060-5739-4f4a-a664-3290b41530fb-2015-07-28 09:28:19Z-P" + "8d9e80fd-fc97-43d7-9309-b2b6ac1d099e-2015-08-19 02:31:02Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14970" ], "x-ms-correlation-request-id": [ - "7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092820Z:7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "CENTRALUS:20150819T023103Z:7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:19 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -271,19 +271,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bac4bed3-9d94-472e-9490-3df8eb0e8565-2015-07-28 09:28:21Z-P" + "c9e3039d-f5a0-42f1-9727-c95cf8754ec3-2015-08-19 02:31:04Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -295,28 +295,28 @@ "no-cache" ], "x-ms-request-id": [ - "fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "x-ms-client-request-id": [ - "bac4bed3-9d94-472e-9490-3df8eb0e8565-2015-07-28 09:28:21Z-P" + "c9e3039d-f5a0-42f1-9727-c95cf8754ec3-2015-08-19 02:31:04Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14967" ], "x-ms-correlation-request-id": [ - "fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "CENTRALUS:20150819T023105Z:77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -331,19 +331,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b9632da3-1d2e-4536-bd4f-c565cddc32c4-2015-07-28 09:28:22Z-P" + "b12a808a-6a23-4d94-90d6-85c72269b35e-2015-08-19 02:31:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -355,28 +355,28 @@ "no-cache" ], "x-ms-request-id": [ - "2377b055-6966-458c-8a70-b72cded529bf" + "8473934e-af87-43ff-b640-9678825b5ddc" ], "x-ms-client-request-id": [ - "b9632da3-1d2e-4536-bd4f-c565cddc32c4-2015-07-28 09:28:22Z-P" + "b12a808a-6a23-4d94-90d6-85c72269b35e-2015-08-19 02:31:05Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14965" ], "x-ms-correlation-request-id": [ - "2377b055-6966-458c-8a70-b72cded529bf" + "8473934e-af87-43ff-b640-9678825b5ddc" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:2377b055-6966-458c-8a70-b72cded529bf" + "CENTRALUS:20150819T023105Z:8473934e-af87-43ff-b640-9678825b5ddc" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:22 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -391,19 +391,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4d3fd094-3d7a-4509-b997-cfcbbac5f54b-2015-07-28 09:28:26Z-P" + "3d9621bf-20a6-4605-b86f-dd73bb83d697-2015-08-19 02:31:08Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -415,28 +415,28 @@ "no-cache" ], "x-ms-request-id": [ - "6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "x-ms-client-request-id": [ - "4d3fd094-3d7a-4509-b997-cfcbbac5f54b-2015-07-28 09:28:26Z-P" + "3d9621bf-20a6-4605-b86f-dd73bb83d697-2015-08-19 02:31:08Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14963" ], "x-ms-correlation-request-id": [ - "6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092826Z:6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "CENTRALUS:20150819T023108Z:0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:08 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -451,13 +451,13 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c2b07874-a7b0-4be2-93d4-ee1015d1d71e-2015-07-28 09:28:21Z-P" + "c3e7d9cd-228f-412c-9ec8-d9b16916f9bc-2015-08-19 02:31:04Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -475,16 +475,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14968" ], "x-ms-request-id": [ - "1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "e352a45c-7833-4f99-96fc-770a888a77df" ], "x-ms-correlation-request-id": [ - "1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "e352a45c-7833-4f99-96fc-770a888a77df" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092821Z:1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "CENTRALUS:20150819T023104Z:e352a45c-7833-4f99-96fc-770a888a77df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -493,28 +493,28 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Servers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1NlcnZlcnM/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Servers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1NlcnZlcnM/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Servers/57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"name\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"type\": \"Microsoft.SiteRecovery/Servers\",\r\n \"properties\": {\r\n \"serverVersion\": \"3.2.7510.0\",\r\n \"providerVersion\": \"3.5.601.0\",\r\n \"lastHeartbeat\": \"2015-07-28T09:27:10.6378094Z\",\r\n \"connectionStatus\": \"Connected\",\r\n \"fabricType\": \"VMM\",\r\n \"fabricObjectID\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"friendlyName\": \"sriramvu-hv2.fareast.corp.microsoft.com\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Servers/57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"name\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"type\": \"Microsoft.SiteRecovery/Servers\",\r\n \"properties\": {\r\n \"serverVersion\": \"3.2.7510.0\",\r\n \"providerVersion\": \"3.5.601.0\",\r\n \"lastHeartbeat\": \"2015-08-19T02:31:07.8626993Z\",\r\n \"connectionStatus\": \"Connected\",\r\n \"fabricType\": \"VMM\",\r\n \"fabricObjectID\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"friendlyName\": \"sriramvu-hv2.fareast.corp.microsoft.com\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "593" @@ -529,7 +529,7 @@ "no-cache" ], "x-ms-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P 7/28/2015 9:28:24 AM" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P 8/19/2015 2:31:08 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -548,43 +548,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14986" ], "x-ms-correlation-request-id": [ - "8dac9bfd-622c-4440-862c-0b91e0f74f1a" + "4748113b-0486-49a6-88ed-db3a5fbf8a5b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092824Z:8dac9bfd-622c-4440-862c-0b91e0f74f1a" + "CENTRALUS:20150819T023108Z:4748113b-0486-49a6-88ed-db3a5fbf8a5b" ], "Date": [ - "Tue, 28 Jul 2015 09:28:24 GMT" + "Wed, 19 Aug 2015 02:31:07 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -596,7 +596,7 @@ "no-cache" ], "x-ms-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P 7/28/2015 9:28:27 AM" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P 8/19/2015 2:31:09 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -615,19 +615,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14985" ], "x-ms-correlation-request-id": [ - "b766a144-65fb-4ea3-9c68-1f2f57d13b8c" + "bb0e159d-ec31-40c4-9840-49551a221199" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092827Z:b766a144-65fb-4ea3-9c68-1f2f57d13b8c" + "CENTRALUS:20150819T023109Z:bb0e159d-ec31-40c4-9840-49551a221199" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:09 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json index 2f65d78ccf0c..9f9072416927 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14937" + "14954" ], "x-ms-request-id": [ - "25f8981d-9b16-45df-888e-aaa772fe6e5d" + "4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "x-ms-correlation-request-id": [ - "25f8981d-9b16-45df-888e-aaa772fe6e5d" + "4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113522Z:25f8981d-9b16-45df-888e-aaa772fe6e5d" + "CENTRALUS:20150819T023319Z:4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:22 GMT" + "Wed, 19 Aug 2015 02:33:18 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14935" + "14952" ], "x-ms-request-id": [ - "4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "f0254135-3a3c-492f-ab29-430ade8b5455" ], "x-ms-correlation-request-id": [ - "4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "f0254135-3a3c-492f-ab29-430ade8b5455" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113523Z:4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "CENTRALUS:20150819T023320Z:f0254135-3a3c-492f-ab29-430ade8b5455" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:23 GMT" + "Wed, 19 Aug 2015 02:33:19 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14950" ], "x-ms-request-id": [ - "2ed461f5-609e-4e46-894b-a7d311de7677" + "112e5747-b3ad-4545-a881-dc62950a8928" ], "x-ms-correlation-request-id": [ - "2ed461f5-609e-4e46-894b-a7d311de7677" + "112e5747-b3ad-4545-a881-dc62950a8928" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113526Z:2ed461f5-609e-4e46-894b-a7d311de7677" + "CENTRALUS:20150819T023323Z:112e5747-b3ad-4545-a881-dc62950a8928" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:25 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14948" ], "x-ms-request-id": [ - "9484770b-3134-40f6-a2ac-d04e4c81330f" + "46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "x-ms-correlation-request-id": [ - "9484770b-3134-40f6-a2ac-d04e4c81330f" + "46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:9484770b-3134-40f6-a2ac-d04e4c81330f" + "CENTRALUS:20150819T023324Z:46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ] }, "StatusCode": 200 @@ -214,7 +214,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -232,16 +232,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14946" ], "x-ms-request-id": [ - "7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "9c98daff-9348-4307-8c36-d221c7c4bc51" ], "x-ms-correlation-request-id": [ - "7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "9c98daff-9348-4307-8c36-d221c7c4bc51" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113528Z:7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "CENTRALUS:20150819T023325Z:9c98daff-9348-4307-8c36-d221c7c4bc51" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -250,7 +250,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:28 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ] }, "StatusCode": 200 @@ -265,7 +265,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -283,16 +283,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14944" ], "x-ms-request-id": [ - "a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "x-ms-correlation-request-id": [ - "a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113531Z:a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "CENTRALUS:20150819T023328Z:c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -301,7 +301,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:30 GMT" + "Wed, 19 Aug 2015 02:33:27 GMT" ] }, "StatusCode": 200 @@ -313,19 +313,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adb96490-acc3-442d-863a-1dd0593425e4-2015-07-28 11:35:22Z-P" + "c9aa3a1e-6818-4c07-9eea-c47e88ebe54e-2015-08-19 02:33:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -337,28 +337,28 @@ "no-cache" ], "x-ms-request-id": [ - "d76e4a02-1f04-444c-a186-e86c6f023dc0" + "a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "x-ms-client-request-id": [ - "adb96490-acc3-442d-863a-1dd0593425e4-2015-07-28 11:35:22Z-P" + "c9aa3a1e-6818-4c07-9eea-c47e88ebe54e-2015-08-19 02:33:19Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14936" + "14953" ], "x-ms-correlation-request-id": [ - "d76e4a02-1f04-444c-a186-e86c6f023dc0" + "a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113523Z:d76e4a02-1f04-444c-a186-e86c6f023dc0" + "CENTRALUS:20150819T023320Z:a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:22 GMT" + "Wed, 19 Aug 2015 02:33:19 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -373,19 +373,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "80772c67-0793-4074-bbc1-4c92e180759e-2015-07-28 11:35:23Z-P" + "bfd3d684-e78f-4c1a-bae6-c030010fd35e-2015-08-19 02:33:20Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -397,28 +397,28 @@ "no-cache" ], "x-ms-request-id": [ - "a3a04e68-238d-4cc5-b9af-f690369093a3" + "89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "x-ms-client-request-id": [ - "80772c67-0793-4074-bbc1-4c92e180759e-2015-07-28 11:35:23Z-P" + "bfd3d684-e78f-4c1a-bae6-c030010fd35e-2015-08-19 02:33:20Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14934" + "14951" ], "x-ms-correlation-request-id": [ - "a3a04e68-238d-4cc5-b9af-f690369093a3" + "89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113524Z:a3a04e68-238d-4cc5-b9af-f690369093a3" + "CENTRALUS:20150819T023321Z:89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:23 GMT" + "Wed, 19 Aug 2015 02:33:20 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -433,19 +433,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c9a5b5fc-1d85-4723-9e6b-d32f880aa459-2015-07-28 11:35:26Z-P" + "3db25885-ef70-4330-8603-c9c380098660-2015-08-19 02:33:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -457,28 +457,28 @@ "no-cache" ], "x-ms-request-id": [ - "8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "141320c8-4351-404c-a78b-fc37ba8da381" ], "x-ms-client-request-id": [ - "c9a5b5fc-1d85-4723-9e6b-d32f880aa459-2015-07-28 11:35:26Z-P" + "3db25885-ef70-4330-8603-c9c380098660-2015-08-19 02:33:23Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14949" ], "x-ms-correlation-request-id": [ - "8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "141320c8-4351-404c-a78b-fc37ba8da381" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113526Z:8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "CENTRALUS:20150819T023323Z:141320c8-4351-404c-a78b-fc37ba8da381" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:25 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -493,19 +493,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1299f83f-8fbc-4dd0-8af8-36e2502345d8-2015-07-28 11:35:27Z-P" + "970c1d42-835e-4c89-95be-eab713da9822-2015-08-19 02:33:24Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -517,28 +517,28 @@ "no-cache" ], "x-ms-request-id": [ - "d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "x-ms-client-request-id": [ - "1299f83f-8fbc-4dd0-8af8-36e2502345d8-2015-07-28 11:35:27Z-P" + "970c1d42-835e-4c89-95be-eab713da9822-2015-08-19 02:33:24Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14947" ], "x-ms-correlation-request-id": [ - "d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "CENTRALUS:20150819T023325Z:4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -553,19 +553,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "329a3a8d-3824-45f4-8e27-6e836ffd6024-2015-07-28 11:35:28Z-P" + "fc8cd55a-3db0-4f63-96db-28884ff21537-2015-08-19 02:33:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -577,28 +577,28 @@ "no-cache" ], "x-ms-request-id": [ - "e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "3effe364-b063-4331-9c87-3a1516513201" ], "x-ms-client-request-id": [ - "329a3a8d-3824-45f4-8e27-6e836ffd6024-2015-07-28 11:35:28Z-P" + "fc8cd55a-3db0-4f63-96db-28884ff21537-2015-08-19 02:33:25Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14928" + "14945" ], "x-ms-correlation-request-id": [ - "e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "3effe364-b063-4331-9c87-3a1516513201" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113529Z:e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "CENTRALUS:20150819T023326Z:3effe364-b063-4331-9c87-3a1516513201" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:28 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -613,19 +613,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ea8fafd4-e5cb-4ffe-ae07-01af9269d24f-2015-07-28 11:35:31Z-P" + "d1437b5a-25bf-4777-83a9-c0be5b05d72a-2015-08-19 02:33:28Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -637,28 +637,28 @@ "no-cache" ], "x-ms-request-id": [ - "3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "x-ms-client-request-id": [ - "ea8fafd4-e5cb-4ffe-ae07-01af9269d24f-2015-07-28 11:35:31Z-P" + "d1437b5a-25bf-4777-83a9-c0be5b05d72a-2015-08-19 02:33:28Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14926" + "14943" ], "x-ms-correlation-request-id": [ - "3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113531Z:3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "CENTRALUS:20150819T023328Z:77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:31 GMT" + "Wed, 19 Aug 2015 02:33:28 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -667,25 +667,25 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -697,7 +697,7 @@ "no-cache" ], "x-ms-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P 7/28/2015 11:35:25 AM" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P 8/19/2015 2:33:23 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -716,43 +716,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14983" ], "x-ms-correlation-request-id": [ - "0b906aae-863a-4948-ba95-57c92cc8aefa" + "6ec1c951-7176-4d2d-a4c1-13648cfd2d70" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113525Z:0b906aae-863a-4948-ba95-57c92cc8aefa" + "CENTRALUS:20150819T023323Z:6ec1c951-7176-4d2d-a4c1-13648cfd2d70" ], "Date": [ - "Tue, 28 Jul 2015 11:35:24 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -764,7 +764,7 @@ "no-cache" ], "x-ms-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P 7/28/2015 11:35:26 AM" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P 8/19/2015 2:33:24 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -783,40 +783,40 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14982" ], "x-ms-correlation-request-id": [ - "3c74c760-54af-4ba5-a2b5-2133e91f2424" + "8fb9f06a-1496-4c81-b454-d5b4c43a705d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:3c74c760-54af-4ba5-a2b5-2133e91f2424" + "CENTRALUS:20150819T023324Z:8fb9f06a-1496-4c81-b454-d5b4c43a705d" ], "Date": [ - "Tue, 28 Jul 2015 11:35:26 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -831,7 +831,7 @@ "no-cache" ], "x-ms-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P 7/28/2015 11:35:28 AM" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P 8/19/2015 2:33:25 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -850,26 +850,26 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14981" ], "x-ms-correlation-request-id": [ - "b9a4b792-6089-49df-b552-a86283d7702c" + "dfb0f839-3fff-4065-8159-fc320aed02d4" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113528Z:b9a4b792-6089-49df-b552-a86283d7702c" + "CENTRALUS:20150819T023325Z:dfb0f839-3fff-4065-8159-fc320aed02d4" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/Associate?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9Bc3NvY2lhdGU/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/Associate?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9Bc3NvY2lhdGU/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", "RequestHeaders": { @@ -883,16 +883,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079729326)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684529326)\\/\",\"ClientRequestId\":\"87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"JBMPi2dzKfWsGhwBpmRG6W4+nM0L/Go1oZI234ik1S0=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948006432)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552806432)\\/\",\"ClientRequestId\":\"76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"8evBdvY9Ojoap+7MvbKMS9KLr4QZf1Mr++3A0HEztTg=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -910,34 +910,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10" ], "x-ms-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P 7/28/2015 11:35:30 AM" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P 8/19/2015 2:33:28 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-correlation-request-id": [ - "e158badf-e59d-408a-96ab-2f7844efbcb6" + "e6d2787b-2064-4665-b552-472e35c24dc9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113530Z:e158badf-e59d-408a-96ab-2f7844efbcb6" + "CENTRALUS:20150819T023327Z:e6d2787b-2064-4665-b552-472e35c24dc9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:30 GMT" + "Wed, 19 Aug 2015 02:33:27 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -946,22 +946,22 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMDNmNDllMmQtNTBmNC00Mzc3LTgzMTAtM2IzNjUxY2JjN2EyP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvZDA0ZDg2YmUtNjA0YS00MTcyLTg1NTUtZDRiZTFlYWRjZDUzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2\",\r\n \"name\": \"03f49e2d-50f4-4377-8310-3b3651cbc7a2\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P\",\r\n \"scenarioName\": \"CloudPairing\",\r\n \"displayName\": \"Protection configuration\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudPairingHyperVReplicaBlue\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:35:30.0983484Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/d04d86be-604a-4172-8555-d4be1eadcd53\",\r\n \"name\": \"d04d86be-604a-4172-8555-d4be1eadcd53\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P\",\r\n \"scenarioName\": \"CloudPairing\",\r\n \"displayName\": \"Protection configuration\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudPairingHyperVReplicaBlue\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:33:27.9316182Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "899" @@ -976,7 +976,7 @@ "no-cache" ], "x-ms-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P 7/28/2015 11:35:31 AM" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P 8/19/2015 2:33:29 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -995,19 +995,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14980" ], "x-ms-correlation-request-id": [ - "46154c2d-8c68-4bcf-a0e3-e73e0970f658" + "e9fb2ef8-4cd0-4627-939f-0a87206428a0" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113532Z:46154c2d-8c68-4bcf-a0e3-e73e0970f658" + "CENTRALUS:20150819T023329Z:e9fb2ef8-4cd0-4627-939f-0a87206428a0" ], "Date": [ - "Tue, 28 Jul 2015 11:35:32 GMT" + "Wed, 19 Aug 2015 02:33:28 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json index 9451fb166756..5dfe08f88d39 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14962" ], "x-ms-request-id": [ - "ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "x-ms-correlation-request-id": [ - "ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094940Z:ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "CENTRALUS:20150819T023239Z:249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:49:40 GMT" + "Wed, 19 Aug 2015 02:32:38 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14960" ], "x-ms-request-id": [ - "9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "x-ms-correlation-request-id": [ - "9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094957Z:9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "CENTRALUS:20150819T023240Z:0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:49:57 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14958" ], "x-ms-request-id": [ - "21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "32384600-6368-4420-8248-79daeba00ded" ], "x-ms-correlation-request-id": [ - "21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "32384600-6368-4420-8248-79daeba00ded" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095001Z:21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "CENTRALUS:20150819T023244Z:32384600-6368-4420-8248-79daeba00ded" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,229 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:01 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups?api-version=2015-01-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMDEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "550" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-request-id": [ - "45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "x-ms-correlation-request-id": [ - "45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095007Z:45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:07 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups?api-version=2015-01-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMDEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "550" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" - ], - "x-ms-request-id": [ - "bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "x-ms-correlation-request-id": [ - "bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095023Z:bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:22 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault?api-version=2015-03-15", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQ/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7a24434d-e912-49b0-8f09-8980b1f212be-2015-07-28 09:49:40Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "753" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "x-ms-client-request-id": [ - "7a24434d-e912-49b0-8f09-8980b1f212be-2015-07-28 09:49:40Z-P" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-correlation-request-id": [ - "ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094940Z:ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:49:40 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault?api-version=2015-03-15", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQ/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "680fae71-37ca-4f8d-af6e-d6dd8e675991-2015-07-28 09:49:57Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "753" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "x-ms-client-request-id": [ - "680fae71-37ca-4f8d-af6e-d6dd8e675991-2015-07-28 09:49:57Z-P" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" - ], - "x-ms-correlation-request-id": [ - "337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094958Z:337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:49:57 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" + "Wed, 19 Aug 2015 02:32:44 GMT" ] }, "StatusCode": 200 @@ -382,19 +160,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f7b913d4-2c1c-4fd1-8a30-a8cef1ea4260-2015-07-28 09:50:01Z-P" + "245645fe-b5cd-4b0b-82a1-1ec4975deff2-2015-08-19 02:32:39Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -406,28 +184,28 @@ "no-cache" ], "x-ms-request-id": [ - "baaadc12-f287-4bc1-9590-6279a79bcae4" + "2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "x-ms-client-request-id": [ - "f7b913d4-2c1c-4fd1-8a30-a8cef1ea4260-2015-07-28 09:50:01Z-P" + "245645fe-b5cd-4b0b-82a1-1ec4975deff2-2015-08-19 02:32:39Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14961" ], "x-ms-correlation-request-id": [ - "baaadc12-f287-4bc1-9590-6279a79bcae4" + "2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095001Z:baaadc12-f287-4bc1-9590-6279a79bcae4" + "CENTRALUS:20150819T023240Z:2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:01 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -442,19 +220,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9a3cce5c-abec-4f33-a299-825efbf48262-2015-07-28 09:50:07Z-P" + "116e6b80-e6ae-41cc-9800-434863c67794-2015-08-19 02:32:40Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -466,28 +244,28 @@ "no-cache" ], "x-ms-request-id": [ - "deb9d987-3f87-4629-ba2d-25d15c2debec" + "791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "x-ms-client-request-id": [ - "9a3cce5c-abec-4f33-a299-825efbf48262-2015-07-28 09:50:07Z-P" + "116e6b80-e6ae-41cc-9800-434863c67794-2015-08-19 02:32:40Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14959" ], "x-ms-correlation-request-id": [ - "deb9d987-3f87-4629-ba2d-25d15c2debec" + "791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095008Z:deb9d987-3f87-4629-ba2d-25d15c2debec" + "CENTRALUS:20150819T023241Z:791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:08 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -502,19 +280,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82ac45a5-f3fc-49ec-ada2-a38b2f467890-2015-07-28 09:50:22Z-P" + "54445d4b-6bd0-411e-838c-479bc2646948-2015-08-19 02:32:44Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -526,28 +304,28 @@ "no-cache" ], "x-ms-request-id": [ - "9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "x-ms-client-request-id": [ - "82ac45a5-f3fc-49ec-ada2-a38b2f467890-2015-07-28 09:50:22Z-P" + "54445d4b-6bd0-411e-838c-479bc2646948-2015-08-19 02:32:44Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14957" ], "x-ms-correlation-request-id": [ - "9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095023Z:9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "CENTRALUS:20150819T023244Z:a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:23 GMT" + "Wed, 19 Aug 2015 02:32:44 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -556,8 +334,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileInput\",\r\n \"replicationFrequencyInSeconds\": 30,\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disable\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletion\": \"NotRequired\"\r\n }\r\n}", "RequestHeaders": { @@ -571,16 +349,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438073398265)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438678198265)\\/\",\"ClientRequestId\":\"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"HndeYmHnLukeOh6vcrrS3LyYftnDbLFIoE57P9SAdBI=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439947961302)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552761302)\\/\",\"ClientRequestId\":\"230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"CYy0Q+Z3zEOyEFhXHR2IuPnDEqt0feTMPvOM8CDJ3vo=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -598,34 +376,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10" ], "x-ms-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P 7/28/2015 9:50:00 AM" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P 8/19/2015 2:32:43 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1196" ], "x-ms-correlation-request-id": [ - "1a9353cd-bac3-44d0-9bae-4ac0ec6602bb" + "9539c04e-674e-46e6-976a-da5e88a7e47c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095000Z:1a9353cd-bac3-44d0-9bae-4ac0ec6602bb" + "CENTRALUS:20150819T023244Z:9539c04e-674e-46e6-976a-da5e88a7e47c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:00 GMT" + "Wed, 19 Aug 2015 02:32:43 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -634,159 +412,25 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMWRmNjBkNDgtZGI2Yy00NDVkLWI0OGUtNjQxNmVmNzZmMzA5P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"name\": \"1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.1841869Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T09:50:00.5081255Z\",\r\n \"endTime\": \"2015-07-28T09:50:01Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1124" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P 7/28/2015 9:50:02 AM" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.0", - "Microsoft-IIS/8.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-client-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "5416048a-9d2c-4a72-be1c-554e0d0ea91b" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095002Z:5416048a-9d2c-4a72-be1c-554e0d0ea91b" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:02 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMWRmNjBkNDgtZGI2Yy00NDVkLWI0OGUtNjQxNmVmNzZmMzA5P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"name\": \"1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.1841869Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T09:50:00.5081255Z\",\r\n \"endTime\": \"2015-07-28T09:50:01Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1124" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P 7/28/2015 9:50:08 AM" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.0", - "Microsoft-IIS/8.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-client-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" - ], - "x-ms-correlation-request-id": [ - "9c35d7b2-1f0f-4a12-85b6-bb8cc626e089" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095008Z:9c35d7b2-1f0f-4a12-85b6-bb8cc626e089" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:08 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvNjY0OThiYTMtZTc3NC00MWJmLTk1OGYtMjg5ZmY2MzA4MzFmP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/66498ba3-e774-41bf-958f-289ff630831f\",\r\n \"name\": \"66498ba3-e774-41bf-958f-289ff630831f\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-08-19T02:32:45.0128822Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:32:43.4983869Z\",\r\n \"endTime\": \"2015-08-19T02:32:45Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "825" + "1098" ], "Content-Type": [ "application/json" @@ -798,7 +442,7 @@ "no-cache" ], "x-ms-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P 7/28/2015 9:50:24 AM" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P 8/19/2015 2:32:45 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -817,19 +461,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14984" ], "x-ms-correlation-request-id": [ - "bed007db-1730-4a1f-b14a-f35f088d0de7" + "ee091270-2885-4eba-8118-ce1e91ec0f78" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095024Z:bed007db-1730-4a1f-b14a-f35f088d0de7" + "CENTRALUS:20150819T023245Z:ee091270-2885-4eba-8118-ce1e91ec0f78" ], "Date": [ - "Tue, 28 Jul 2015 09:50:23 GMT" + "Wed, 19 Aug 2015 02:32:45 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json index d06df20ae36a..37b6fa160841 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14982" ], "x-ms-request-id": [ - "b82d259d-836c-4071-8f90-091472b79be6" + "a67931d7-25f3-4e92-89d3-436e4c38006b" ], "x-ms-correlation-request-id": [ - "b82d259d-836c-4071-8f90-091472b79be6" + "a67931d7-25f3-4e92-89d3-436e4c38006b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113923Z:b82d259d-836c-4071-8f90-091472b79be6" + "CENTRALUS:20150819T023659Z:a67931d7-25f3-4e92-89d3-436e4c38006b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:22 GMT" + "Wed, 19 Aug 2015 02:36:59 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14980" ], "x-ms-request-id": [ - "45072869-2792-44ce-9de9-f76fa27d61ae" + "730afaae-c262-49b8-a1c6-7949c4ab4587" ], "x-ms-correlation-request-id": [ - "45072869-2792-44ce-9de9-f76fa27d61ae" + "730afaae-c262-49b8-a1c6-7949c4ab4587" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113924Z:45072869-2792-44ce-9de9-f76fa27d61ae" + "CENTRALUS:20150819T023700Z:730afaae-c262-49b8-a1c6-7949c4ab4587" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:23 GMT" + "Wed, 19 Aug 2015 02:37:00 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14978" ], "x-ms-request-id": [ - "c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "x-ms-correlation-request-id": [ - "c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113926Z:c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "CENTRALUS:20150819T023703Z:7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:26 GMT" + "Wed, 19 Aug 2015 02:37:03 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" + "14976" ], "x-ms-request-id": [ - "dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "x-ms-correlation-request-id": [ - "dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "CENTRALUS:20150819T023705Z:4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:04 GMT" ] }, "StatusCode": 200 @@ -211,19 +211,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7fd7ba17-6dfa-44ff-90b7-2e1a7e52b484-2015-07-28 11:39:23Z-P" + "1170244c-18ec-4f24-8cba-b66c7945d912-2015-08-19 02:36:59Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -235,28 +235,28 @@ "no-cache" ], "x-ms-request-id": [ - "41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "x-ms-client-request-id": [ - "7fd7ba17-6dfa-44ff-90b7-2e1a7e52b484-2015-07-28 11:39:23Z-P" + "1170244c-18ec-4f24-8cba-b66c7945d912-2015-08-19 02:36:59Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" + "14981" ], "x-ms-correlation-request-id": [ - "41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113923Z:41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "CENTRALUS:20150819T023700Z:f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:23 GMT" + "Wed, 19 Aug 2015 02:36:59 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -271,19 +271,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4784fdb3-550f-4664-b0ca-0a62e10a66ab-2015-07-28 11:39:24Z-P" + "77644d07-a720-4785-a0fd-9692f18c6ea3-2015-08-19 02:37:00Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -295,28 +295,28 @@ "no-cache" ], "x-ms-request-id": [ - "3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "d2be4038-b8c6-4044-9782-3cfb1a011422" ], "x-ms-client-request-id": [ - "4784fdb3-550f-4664-b0ca-0a62e10a66ab-2015-07-28 11:39:24Z-P" + "77644d07-a720-4785-a0fd-9692f18c6ea3-2015-08-19 02:37:00Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14979" ], "x-ms-correlation-request-id": [ - "3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "d2be4038-b8c6-4044-9782-3cfb1a011422" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113924Z:3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "CENTRALUS:20150819T023701Z:d2be4038-b8c6-4044-9782-3cfb1a011422" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:24 GMT" + "Wed, 19 Aug 2015 02:37:00 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -331,19 +331,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e6737c19-2850-440b-93f6-9aff344ca750-2015-07-28 11:39:26Z-P" + "1e6f1efb-f868-48d2-94d2-f18541ea233c-2015-08-19 02:37:03Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -355,28 +355,28 @@ "no-cache" ], "x-ms-request-id": [ - "850f199d-3a93-4de6-b0d9-d42f2289d615" + "f5786f77-55ee-40e0-83bc-703c7d578493" ], "x-ms-client-request-id": [ - "e6737c19-2850-440b-93f6-9aff344ca750-2015-07-28 11:39:26Z-P" + "1e6f1efb-f868-48d2-94d2-f18541ea233c-2015-08-19 02:37:03Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" + "14977" ], "x-ms-correlation-request-id": [ - "850f199d-3a93-4de6-b0d9-d42f2289d615" + "f5786f77-55ee-40e0-83bc-703c7d578493" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113927Z:850f199d-3a93-4de6-b0d9-d42f2289d615" + "CENTRALUS:20150819T023703Z:f5786f77-55ee-40e0-83bc-703c7d578493" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:27 GMT" + "Wed, 19 Aug 2015 02:37:03 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -391,19 +391,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4fe4f3ee-47bd-4e97-b2ab-d88323012771-2015-07-28 11:39:28Z-P" + "65fab847-039a-4d58-829e-0a2c61465bb8-2015-08-19 02:37:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -415,28 +415,28 @@ "no-cache" ], "x-ms-request-id": [ - "c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "52778b2b-d042-4760-a505-ebca3826c84d" ], "x-ms-client-request-id": [ - "4fe4f3ee-47bd-4e97-b2ab-d88323012771-2015-07-28 11:39:28Z-P" + "65fab847-039a-4d58-829e-0a2c61465bb8-2015-08-19 02:37:05Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14975" ], "x-ms-correlation-request-id": [ - "c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "52778b2b-d042-4760-a505-ebca3826c84d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "CENTRALUS:20150819T023705Z:52778b2b-d042-4760-a505-ebca3826c84d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -445,22 +445,22 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -475,7 +475,7 @@ "no-cache" ], "x-ms-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P 7/28/2015 11:39:26 AM" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P 8/19/2015 2:37:03 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -494,26 +494,26 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14936" ], "x-ms-correlation-request-id": [ - "4658c915-61f9-4ee7-95ff-a3f2066969db" + "5c7c3261-276c-4d42-a731-df87a618c879" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113926Z:4658c915-61f9-4ee7-95ff-a3f2066969db" + "CENTRALUS:20150819T023703Z:5c7c3261-276c-4d42-a731-df87a618c879" ], "Date": [ - "Tue, 28 Jul 2015 11:39:26 GMT" + "Wed, 19 Aug 2015 02:37:02 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -521,16 +521,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079967433)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684767433)\\/\",\"ClientRequestId\":\"defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"YwSy8QjlCfESA3bMm9VhcbjPK8WWTT2rG7uajlXC/94=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948223964)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440553023964)\\/\",\"ClientRequestId\":\"bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"6UzV3PxOWKL/ua1CIWFNdShYS9r3qA1mqxvyYImrQoE=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -548,34 +548,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10" ], "x-ms-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P 7/28/2015 11:39:27 AM" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P 8/19/2015 2:37:05 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "beab5f36-5069-4083-92ad-b4ec239372d7" + "b8114395-af5e-4f8b-8034-cf218846480f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:beab5f36-5069-4083-92ad-b4ec239372d7" + "CENTRALUS:20150819T023704Z:b8114395-af5e-4f8b-8034-cf218846480f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:04 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -584,25 +584,25 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvOTk1NjU1NzUtZTEzNC00NWUwLThhNDMtMjcxOWY5Njk2NWI0P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvNmM1ODEyZDctMDMyMy00YTM1LTkyMTUtZmJiNDczMjllMmZiP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/99565575-e134-45e0-8a43-2719f96965b4\",\r\n \"name\": \"99565575-e134-45e0-8a43-2719f96965b4\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P\",\r\n \"scenarioName\": \"RemoveProtectionProfile\",\r\n \"displayName\": \"Remove the protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T11:39:27.9544575Z\",\r\n \"endTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"RemoveProtectionProfileTask\",\r\n \"name\": \"RemoveProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"endTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:39:27.5920617Z\",\r\n \"endTime\": \"2015-07-28T11:39:27Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb\",\r\n \"name\": \"6c5812d7-0323-4a35-9215-fbb47329e2fb\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P\",\r\n \"scenarioName\": \"RemoveProtectionProfile\",\r\n \"displayName\": \"Remove the protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-08-19T02:37:04.9791098Z\",\r\n \"endTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"RemoveProtectionProfileTask\",\r\n \"name\": \"RemoveProtectionProfileTask\",\r\n \"startTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"endTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:37:04.9762758Z\",\r\n \"endTime\": \"2015-08-19T02:37:05Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1138" + "1135" ], "Content-Type": [ "application/json" @@ -614,7 +614,7 @@ "no-cache" ], "x-ms-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P 7/28/2015 11:39:29 AM" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P 8/19/2015 2:37:06 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -633,19 +633,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14935" ], "x-ms-correlation-request-id": [ - "0abf07c1-0fed-4854-a7f8-517bb45e3f9b" + "8af9af4e-d630-4d1b-ae17-982466144f04" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113929Z:0abf07c1-0fed-4854-a7f8-517bb45e3f9b" + "CENTRALUS:20150819T023706Z:8af9af4e-d630-4d1b-ae17-982466144f04" ], "Date": [ - "Tue, 28 Jul 2015 11:39:29 GMT" + "Wed, 19 Aug 2015 02:37:06 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json index f15ce993e5cb..66f4082528c6 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14956" + "14954" ], "x-ms-request-id": [ - "8905c4dd-c7df-4638-8537-b52a85698968" + "d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "x-ms-correlation-request-id": [ - "8905c4dd-c7df-4638-8537-b52a85698968" + "d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113749Z:8905c4dd-c7df-4638-8537-b52a85698968" + "CENTRALUS:20150819T023515Z:d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:48 GMT" + "Wed, 19 Aug 2015 02:35:15 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14952" ], "x-ms-request-id": [ - "2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "755e6f80-22f1-48b9-b408-f7a0beec988c" ], "x-ms-correlation-request-id": [ - "2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "755e6f80-22f1-48b9-b408-f7a0beec988c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113750Z:2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "CENTRALUS:20150819T023516Z:755e6f80-22f1-48b9-b408-f7a0beec988c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:16 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" + "14950" ], "x-ms-request-id": [ - "ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "x-ms-correlation-request-id": [ - "ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113756Z:ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "CENTRALUS:20150819T023519Z:014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:55 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14950" + "14948" ], "x-ms-request-id": [ - "4e9b1512-c649-4d44-a3bf-51838c843d6b" + "8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "x-ms-correlation-request-id": [ - "4e9b1512-c649-4d44-a3bf-51838c843d6b" + "8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113757Z:4e9b1512-c649-4d44-a3bf-51838c843d6b" + "CENTRALUS:20150819T023521Z:8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:57 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ] }, "StatusCode": 200 @@ -214,7 +214,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -232,16 +232,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14948" + "14946" ], "x-ms-request-id": [ - "5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "236fc596-fc95-4817-b58a-360b875b9a44" ], "x-ms-correlation-request-id": [ - "5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "236fc596-fc95-4817-b58a-360b875b9a44" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "CENTRALUS:20150819T023522Z:236fc596-fc95-4817-b58a-360b875b9a44" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -250,7 +250,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:21 GMT" ] }, "StatusCode": 200 @@ -265,7 +265,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -283,16 +283,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14946" + "14944" ], "x-ms-request-id": [ - "b717b06b-d8e7-48e4-987a-aab275483ca9" + "d966061a-b16f-4cbf-a1df-830276374c75" ], "x-ms-correlation-request-id": [ - "b717b06b-d8e7-48e4-987a-aab275483ca9" + "d966061a-b16f-4cbf-a1df-830276374c75" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113801Z:b717b06b-d8e7-48e4-987a-aab275483ca9" + "CENTRALUS:20150819T023525Z:d966061a-b16f-4cbf-a1df-830276374c75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -301,7 +301,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ] }, "StatusCode": 200 @@ -313,19 +313,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e2fdf362-55c0-4800-bed3-d37f73dacb96-2015-07-28 11:37:49Z-P" + "86837d8c-3a8a-4642-95e2-6595d1acc3c1-2015-08-19 02:35:15Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -337,28 +337,28 @@ "no-cache" ], "x-ms-request-id": [ - "7699fd5e-0017-4c08-88bb-52f0e6c28918" + "91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "x-ms-client-request-id": [ - "e2fdf362-55c0-4800-bed3-d37f73dacb96-2015-07-28 11:37:49Z-P" + "86837d8c-3a8a-4642-95e2-6595d1acc3c1-2015-08-19 02:35:15Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14953" ], "x-ms-correlation-request-id": [ - "7699fd5e-0017-4c08-88bb-52f0e6c28918" + "91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113750Z:7699fd5e-0017-4c08-88bb-52f0e6c28918" + "CENTRALUS:20150819T023516Z:91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:15 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -373,19 +373,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f639d350-3338-445b-9f21-daf2ca9c9c41-2015-07-28 11:37:50Z-P" + "d1dc6ba3-08cd-4789-bcc6-5b6d03a81a78-2015-08-19 02:35:16Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -397,28 +397,28 @@ "no-cache" ], "x-ms-request-id": [ - "08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "04abaaec-5497-44e2-956b-98ec33112cd3" ], "x-ms-client-request-id": [ - "f639d350-3338-445b-9f21-daf2ca9c9c41-2015-07-28 11:37:50Z-P" + "d1dc6ba3-08cd-4789-bcc6-5b6d03a81a78-2015-08-19 02:35:16Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" + "14951" ], "x-ms-correlation-request-id": [ - "08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "04abaaec-5497-44e2-956b-98ec33112cd3" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113751Z:08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "CENTRALUS:20150819T023517Z:04abaaec-5497-44e2-956b-98ec33112cd3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:16 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -433,19 +433,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c2e6bb8f-aa04-4c84-90b8-121fefa66e5d-2015-07-28 11:37:56Z-P" + "4ab88664-00e9-4779-a942-74b87e98af65-2015-08-19 02:35:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -457,28 +457,28 @@ "no-cache" ], "x-ms-request-id": [ - "48ae98f7-7653-4e65-a8b9-322968714bd2" + "24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "x-ms-client-request-id": [ - "c2e6bb8f-aa04-4c84-90b8-121fefa66e5d-2015-07-28 11:37:56Z-P" + "4ab88664-00e9-4779-a942-74b87e98af65-2015-08-19 02:35:19Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14951" + "14949" ], "x-ms-correlation-request-id": [ - "48ae98f7-7653-4e65-a8b9-322968714bd2" + "24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113756Z:48ae98f7-7653-4e65-a8b9-322968714bd2" + "CENTRALUS:20150819T023519Z:24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:55 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -493,19 +493,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9c35de08-f227-41ea-84c8-5001ac7c3374-2015-07-28 11:37:57Z-P" + "4c3562c3-acd0-42c6-a2bf-410ae89eafdd-2015-08-19 02:35:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -517,28 +517,28 @@ "no-cache" ], "x-ms-request-id": [ - "1409c002-f1a1-4e5f-b387-be79966048fa" + "f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "x-ms-client-request-id": [ - "9c35de08-f227-41ea-84c8-5001ac7c3374-2015-07-28 11:37:57Z-P" + "4c3562c3-acd0-42c6-a2bf-410ae89eafdd-2015-08-19 02:35:21Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14949" + "14947" ], "x-ms-correlation-request-id": [ - "1409c002-f1a1-4e5f-b387-be79966048fa" + "f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:1409c002-f1a1-4e5f-b387-be79966048fa" + "CENTRALUS:20150819T023521Z:f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -553,19 +553,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "df3c51f1-3b9d-4512-926c-13dcad76f0b9-2015-07-28 11:37:59Z-P" + "8cd61e8c-55e8-4c62-a377-e9f2c03b8589-2015-08-19 02:35:22Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -577,28 +577,28 @@ "no-cache" ], "x-ms-request-id": [ - "b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "ca2540be-921f-413a-9532-6c9dbe548981" ], "x-ms-client-request-id": [ - "df3c51f1-3b9d-4512-926c-13dcad76f0b9-2015-07-28 11:37:59Z-P" + "8cd61e8c-55e8-4c62-a377-e9f2c03b8589-2015-08-19 02:35:22Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14947" + "14945" ], "x-ms-correlation-request-id": [ - "b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "ca2540be-921f-413a-9532-6c9dbe548981" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113759Z:b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "CENTRALUS:20150819T023523Z:ca2540be-921f-413a-9532-6c9dbe548981" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:59 GMT" + "Wed, 19 Aug 2015 02:35:23 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -613,19 +613,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4a53d06c-7712-4fc3-bc28-d95572659470-2015-07-28 11:38:01Z-P" + "acbe5a52-ccba-444f-aa65-4fe2e5e38c65-2015-08-19 02:35:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -637,28 +637,28 @@ "no-cache" ], "x-ms-request-id": [ - "6943269e-107e-46eb-8a96-549ab29a481b" + "a917df97-dc5d-4d29-821b-6d785cae5976" ], "x-ms-client-request-id": [ - "4a53d06c-7712-4fc3-bc28-d95572659470-2015-07-28 11:38:01Z-P" + "acbe5a52-ccba-444f-aa65-4fe2e5e38c65-2015-08-19 02:35:25Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14945" + "14943" ], "x-ms-correlation-request-id": [ - "6943269e-107e-46eb-8a96-549ab29a481b" + "a917df97-dc5d-4d29-821b-6d785cae5976" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113801Z:6943269e-107e-46eb-8a96-549ab29a481b" + "CENTRALUS:20150819T023525Z:a917df97-dc5d-4d29-821b-6d785cae5976" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -667,25 +667,25 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"name\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"name\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "5582" + "6098" ], "Content-Type": [ "application/json" @@ -697,7 +697,7 @@ "no-cache" ], "x-ms-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P 7/28/2015 11:37:55 AM" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P 8/19/2015 2:35:18 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -716,43 +716,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14982" ], "x-ms-correlation-request-id": [ - "f440bf7c-a688-433c-aacd-5185ae049b0e" + "354344bf-00a0-4d2c-a0d9-9d08d798a62f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113755Z:f440bf7c-a688-433c-aacd-5185ae049b0e" + "CENTRALUS:20150819T023519Z:354344bf-00a0-4d2c-a0d9-9d08d798a62f" ], "Date": [ - "Tue, 28 Jul 2015 11:37:54 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"name\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"name\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "5582" + "6098" ], "Content-Type": [ "application/json" @@ -764,7 +764,7 @@ "no-cache" ], "x-ms-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P 7/28/2015 11:37:57 AM" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P 8/19/2015 2:35:20 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -783,40 +783,40 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14981" ], "x-ms-correlation-request-id": [ - "6880df5f-7a51-4563-b831-65a72b9ebe1b" + "88ae83b6-40fa-446a-8576-f684a42aec30" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113757Z:6880df5f-7a51-4563-b831-65a72b9ebe1b" + "CENTRALUS:20150819T023521Z:88ae83b6-40fa-446a-8576-f684a42aec30" ], "Date": [ - "Tue, 28 Jul 2015 11:37:57 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -831,7 +831,7 @@ "no-cache" ], "x-ms-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P 7/28/2015 11:37:58 AM" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P 8/19/2015 2:35:22 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -850,28 +850,28 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14980" ], "x-ms-correlation-request-id": [ - "8e94324c-d42a-427c-83cd-266cff26721e" + "c8cda815-1d41-4dca-a454-74317beeba7d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:8e94324c-d42a-427c-83cd-266cff26721e" + "CENTRALUS:20150819T023522Z:c8cda815-1d41-4dca-a454-74317beeba7d" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:22 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/Dissociate?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9EaXNzb2NpYXRlP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/Dissociate?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9EaXNzb2NpYXRlP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProviderSettings\": \"\",\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", + "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProviderSettings\": {},\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/Json" @@ -883,16 +883,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079879469)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684679469)\\/\",\"ClientRequestId\":\"95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"BOX/DS6b+fVJq8qXPXtTjzstWXxOEBDUxljljI85NLA=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948123089)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552923089)\\/\",\"ClientRequestId\":\"3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"okXOdpbfhHdndNj6bjEHm5qsU0ARx+TFOxjxRMET8O4=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -910,34 +910,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10" ], "x-ms-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P 7/28/2015 11:38:00 AM" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P 8/19/2015 2:35:24 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-correlation-request-id": [ - "de5c931d-3261-4af5-83a0-d5c6b106bac6" + "dee3f6ce-387b-43f2-96bf-22eef4b0c105" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113800Z:de5c931d-3261-4af5-83a0-d5c6b106bac6" + "CENTRALUS:20150819T023524Z:dee3f6ce-387b-43f2-96bf-22eef4b0c105" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:24 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -946,22 +946,22 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvOTQ1NzM0NGQtODA4ZC00MmQxLWI4MzQtOGM0YTk5N2RiNDg2P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvZGNkZjQ1MDEtOWZiMC00ZDIyLWJlNzYtMDQ2YzAzZGU4N2NiP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/9457344d-808d-42d1-b834-8c4a997db486\",\r\n \"name\": \"9457344d-808d-42d1-b834-8c4a997db486\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P\",\r\n \"scenarioName\": \"CloudUnPairing\",\r\n \"displayName\": \"Remove protection\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"6c11a271-07bc-4ec4-bf1b-82b2189f980f\",\r\n \"name\": \"CloudUnPairingHyperVReplica\",\r\n \"startTime\": \"2015-07-28T11:38:00.7533383Z\",\r\n \"endTime\": \"2015-07-28T11:38:00.972046Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudUnPairingHyperVReplicaBlue\",\r\n \"startTime\": \"2015-07-28T11:38:00.9408346Z\",\r\n \"endTime\": \"2015-07-28T11:38:01Z\",\r\n \"actions\": [],\r\n \"state\": \"InProgress\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:38:00.4901505Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb\",\r\n \"name\": \"dcdf4501-9fb0-4d22-be76-046c03de87cb\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P\",\r\n \"scenarioName\": \"CloudUnPairing\",\r\n \"displayName\": \"Remove protection\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"6c11a271-07bc-4ec4-bf1b-82b2189f980f\",\r\n \"name\": \"CloudUnPairingHyperVReplica\",\r\n \"startTime\": \"2015-08-19T02:35:25.2581862Z\",\r\n \"endTime\": \"2015-08-19T02:35:25.5105746Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudUnPairingHyperVReplicaBlue\",\r\n \"startTime\": \"2015-08-19T02:35:25.2581862Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"InProgress\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:35:24.5030243Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1123" @@ -976,7 +976,7 @@ "no-cache" ], "x-ms-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P 7/28/2015 11:38:02 AM" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P 8/19/2015 2:35:26 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -995,19 +995,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14979" ], "x-ms-correlation-request-id": [ - "7c94b617-69a2-47ec-a4be-b9a35df71ba1" + "411f7788-3705-48bc-8d27-3ba030d3af13" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113802Z:7c94b617-69a2-47ec-a4be-b9a35df71ba1" + "CENTRALUS:20150819T023526Z:411f7788-3705-48bc-8d27-3ba030d3af13" ], "Date": [ - "Tue, 28 Jul 2015 11:38:02 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config index 009f27611b7e..46cb508f453d 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config @@ -4,8 +4,8 @@ - - + + @@ -16,6 +16,7 @@ + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj index 2eed40e23b0f..37b99663f21b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj @@ -52,7 +52,7 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll + ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.1-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll True @@ -83,6 +83,9 @@ False ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll + + ..\..\..\packages\Microsoft.WindowsAzure.Management.Scheduler.6.2.0\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll + False ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll @@ -91,6 +94,7 @@ Utilities\Security.Cryptography.dll + False @@ -116,15 +120,15 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs similarity index 89% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs index 7e89027d2123..3b50088d59cf 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs @@ -33,6 +33,9 @@ using Microsoft.WindowsAzure.Commands.Common; using Microsoft.WindowsAzure.Commands.Utilities.Common; using Properties = Microsoft.Azure.Commands.SiteRecovery.Properties; +using Microsoft.WindowsAzure.Management.Scheduler; +using System.Configuration; +using System.Collections.Specialized; namespace Microsoft.Azure.Commands.SiteRecovery { @@ -82,6 +85,11 @@ public RecoveryServicesManagementClient GetRecoveryServicesClient /// private RecoveryServicesManagementClient recoveryServicesClient; + /// + /// Recovery Services client. + /// + private CloudServiceManagementClient cloudServicesClient; + /// /// Initializes a new instance of the class with /// required current subscription. @@ -90,8 +98,30 @@ public RecoveryServicesManagementClient GetRecoveryServicesClient public PSRecoveryServicesClient(AzureProfile azureProfile, AzureSubscription azureSubscription) { this.Profile = azureProfile; + + this.cloudServicesClient = AzureSession.ClientFactory.CreateClient(azureProfile, azureSubscription, AzureEnvironment.Endpoint.ResourceManager); + + System.Configuration.Configuration siteRecoveryConfig = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location); + + System.Configuration.AppSettingsSection appSettings = (System.Configuration.AppSettingsSection)siteRecoveryConfig.GetSection("appSettings"); + + string resourceNamespace = ""; + if(appSettings.Settings.Count == 0) + { + resourceNamespace = "Microsoft.SiteRecovery"; // ProviderNameSpace for Production is taken as default + } + else + { + resourceNamespace = appSettings.Settings["ProviderNamespace"].Value; + } + + Utilities.UpdateVaultSettingsProviderNamespace(resourceNamespace); + this.recoveryServicesClient = - AzureSession.ClientFactory.CreateClient(azureProfile, azureSubscription, AzureEnvironment.Endpoint.ResourceManager); + AzureSession.ClientFactory.CreateCustomClient( + asrVaultCreds.ResourceNamespace, + cloudServicesClient.Credentials, + Profile.Context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager)); } /// @@ -238,10 +268,10 @@ private SiteRecoveryManagementClient GetSiteRecoveryClient() SiteRecoveryManagementClient siteRecoveryClient = AzureSession.ClientFactory.CreateCustomClient( - asrVaultCreds.ResourceGroupName, asrVaultCreds.ResourceName, asrVaultCreds.ResourceGroupName, - recoveryServicesClient.Credentials, + asrVaultCreds.ResourceNamespace, + cloudServicesClient.Credentials, Profile.Context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager)); if (null == siteRecoveryClient) diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClientHelper.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClientHelper.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClientHelper.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClientHelper.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesJobsClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryJobsClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesJobsClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryJobsClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionContainerClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionContainerClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionContainerClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionContainerClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionEntityClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionEntityClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionEntityClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionEntityClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionProfileClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionProfileClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionProfileClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionProfileClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesServerClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryServerClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesServerClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryServerClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultExtendedInfoClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultExtendedInfoClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultExtendedInfoClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultExtendedInfoClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs index 3b643dec2116..90cb9cb5ca4b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs @@ -188,5 +188,28 @@ protected void ValidateUsageById(string replicationProvider, string paramName) paramName)); } } + + /// + /// Gets the current vault location. + /// + /// The current vault location. + protected string GetCurrentValutLocation() + { + string location = string.Empty; + + VaultListResponse vaultListResponse = + RecoveryServicesClient.GetVaultsInResouceGroup(PSRecoveryServicesClient.asrVaultCreds.ResourceGroupName); + + foreach (Vault vault in vaultListResponse.Vaults) + { + if (0 == string.Compare(PSRecoveryServicesClient.asrVaultCreds.ResourceName, vault.Name, true)) + { + location = vault.Location; + break; + } + } + + return location; + } } } \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs index 71329d1370df..1f23a90e410b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs @@ -348,13 +348,14 @@ public VaultCreds() /// resource name /// management cert /// authenticating service namespace - public VaultCreds(string subscriptionId, string resourceName, string managementCert, AcsNamespace acsNamespace) + public VaultCreds(string subscriptionId, string resourceName, string managementCert, AcsNamespace acsNamespace, string resourceNamespace) { this.SubscriptionId = subscriptionId; this.ResourceType = Constants.ASRVaultType; this.ResourceName = resourceName; this.ManagementCert = managementCert; this.AcsNamespace = acsNamespace; + this.ResourceNamespace = resourceNamespace; } #endregion @@ -389,6 +390,13 @@ public VaultCreds(string subscriptionId, string resourceName, string managementC /// [DataMember(Order = 4)] public AcsNamespace AcsNamespace { get; set; } + + /// + /// Gets or sets the key name for HostName entry + /// + [DataMember(Order = 5)] + public string ResourceNamespace { get; set; } + #endregion } @@ -427,8 +435,9 @@ public ASRVaultCreds( string managementCert, AcsNamespace acsNamespace, string channelIntegrityKey, - string cloudServiceName) - : base(subscriptionId, resourceName, managementCert, acsNamespace) + string cloudServiceName, + string resourceNamespace = "Microsoft.SiteRecovery") + : base(subscriptionId, resourceName, managementCert, acsNamespace, resourceNamespace) { this.ChannelIntegrityKey = channelIntegrityKey; this.ResourceGroupName = cloudServiceName; diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs index 38f75fe2fb11..7af8a8c54066 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs @@ -550,26 +550,55 @@ public ASRProtectionProfile(ProtectionProfile profile) if (profile.CustomData.ReplicationProvider == Constants.HyperVReplica) { - JavaScriptSerializer serializer = new JavaScriptSerializer(); - HyperVReplicaProtectionProfileDetails details = (HyperVReplicaProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; + HyperVReplicaProtectionProfileDetails details = + (HyperVReplicaProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; - this.ReplicationProviderSettings = new ASRHyperVReplicaProtectionProfileDetails(); - this.ReplicationProviderSettings.ReplicaDeletionOption = + ASRHyperVReplicaProtectionProfileDetails replicationProviderSettings = + new ASRHyperVReplicaProtectionProfileDetails(); + + replicationProviderSettings.ReplicaDeletionOption = details.ReplicaDeletionOption; - this.ReplicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = + replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = details.ApplicationConsistentSnapshotFrequencyInHours; - - this.ReplicationProviderSettings.Compression= + replicationProviderSettings.Compression = details.Compression; - this.ReplicationProviderSettings.ReplicationFrequencyInSeconds = + replicationProviderSettings.ReplicationFrequencyInSeconds = details.ReplicationFrequencyInSeconds; - this.ReplicationProviderSettings.AllowedAuthenticationType = - (details.AllowedAuthenticationType == 1) ? Constants.AuthenticationTypeKerberos : Constants.AuthenticationTypeCertificate; - this.ReplicationProviderSettings.RecoveryPoints = details.RecoveryPoints; - this.ReplicationProviderSettings.InitialReplicationMethod = - (string.Compare(details.InitialReplicationMethod, "OverNetwork", StringComparison.OrdinalIgnoreCase) == 0) ? Constants.OnlineReplicationMethod : Constants.OfflineReplicationMethod; - this.ReplicationProviderSettings.ReplicationPort = details.ReplicationPort; - this.ReplicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + replicationProviderSettings.AllowedAuthenticationType = + (details.AllowedAuthenticationType == 1) ? + Constants.AuthenticationTypeKerberos : + Constants.AuthenticationTypeCertificate; + replicationProviderSettings.RecoveryPoints = details.RecoveryPoints; + replicationProviderSettings.InitialReplicationMethod = + (string.Compare(details.InitialReplicationMethod, "OverNetwork", StringComparison.OrdinalIgnoreCase) == 0) ? + Constants.OnlineReplicationMethod : + Constants.OfflineReplicationMethod; + replicationProviderSettings.ReplicationPort = details.ReplicationPort; + replicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + + this.ReplicationProviderSettings = replicationProviderSettings; + } + else if (profile.CustomData.ReplicationProvider == Constants.HyperVReplicaAzure) + { + HyperVReplicaAzureProtectionProfileDetails details = + (HyperVReplicaAzureProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; + + ASRHyperVReplicaAzureProtectionProfileDetails replicationProviderSettings = + new ASRHyperVReplicaAzureProtectionProfileDetails(); + + replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = + details.ApplicationConsistentSnapshotFrequencyInHours; + replicationProviderSettings.ReplicationFrequencyInSeconds = details.ReplicationInterval; + replicationProviderSettings.RecoveryPoints = details.RecoveryPointHistoryDuration; + replicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + replicationProviderSettings.Encryption = details.Encryption; + replicationProviderSettings.ActiveStorageAccount = new CustomerStorageAccount(); + replicationProviderSettings.ActiveStorageAccount.StorageAccountName = + details.ActiveStorageAccount.StorageAccountName; + replicationProviderSettings.ActiveStorageAccount.SubscriptionId = + details.ActiveStorageAccount.SubscriptionId; + + this.ReplicationProviderSettings = replicationProviderSettings; } } @@ -603,14 +632,21 @@ public ASRProtectionProfile(ProtectionProfile profile) /// Gets or sets HyperVReplicaProviderSettings /// // public HyperVReplicaProviderSettings ReplicationProviderSettings { get; set; } - public ASRHyperVReplicaProtectionProfileDetails ReplicationProviderSettings { get; set; } + public ASRProtectionProfileProviderSettingsDetails ReplicationProviderSettings { get; set; } #endregion Properties } + /// + /// Protection profile provider settings + /// + public class ASRProtectionProfileProviderSettingsDetails + { + } + // Summary: // HyperV Replica Protection Profile Details. - public class ASRHyperVReplicaProtectionProfileDetails + public class ASRHyperVReplicaProtectionProfileDetails : ASRProtectionProfileProviderSettingsDetails { // Summary: @@ -658,6 +694,52 @@ public class ASRHyperVReplicaProtectionProfileDetails public ushort ReplicationPort { get; set; } } + /// + /// ASR HyperV Replica Azure enable protection input. + /// + public class ASRHyperVReplicaAzureProtectionProfileDetails : ASRProtectionProfileProviderSettingsDetails + { + // Summary: + // Optional. + public CustomerStorageAccount ActiveStorageAccount { get; set; } + // + // Summary: + // Optional. + public int ApplicationConsistentSnapshotFrequencyInHours { get; set; } + // + // Summary: + // Optional. + public string Encryption { get; set; } + // + // Summary: + // Optional. + public TimeSpan? OnlineReplicationStartTime { get; set; } + // + // Summary: + // Optional. + public int RecoveryPoints { get; set; } + // + // Summary: + // Optional. + public int ReplicationFrequencyInSeconds { get; set; } + } + + /// + /// ASR Customer Storage Account. + /// + public class ASRCustomerStorageAccount + { + /// + /// Name of the storage account. + /// + public string StorageAccountName { get; set; } + + /// + /// Subscription ID to which the Storage Account is associated. + /// + public string SubscriptionId { get; set; } + } + /// /// Azure Site Recovery Protection Entity. /// @@ -700,19 +782,41 @@ public ASRProtectionEntity(ProtectionEntity pe) this.ReplicationHealth = pe.Properties.ReplicationHealth; this.TestFailoverStateDescription = pe.Properties.TestFailoverStateDescription; - /* - if (!string.IsNullOrWhiteSpace(pe.ReplicationProviderSettings)) + if (pe.Properties.ReplicationProviderSettings != null) { - AzureVmDiskDetails diskDetails; - DataContractUtils.Deserialize( - pe.ReplicationProviderSettings, out diskDetails); - - this.Disks = diskDetails.Disks; - this.OSDiskId = diskDetails.VHDId; - this.OSDiskName = diskDetails.OsDisk; - this.OS = diskDetails.OsType; + if (0 == string.Compare( + pe.Properties.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (pe.Properties.ReplicationProviderSettings is AzureProtectionEntityProviderSettings) + { + AzureProtectionEntityProviderSettings providerSettings = + (AzureProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + + // also take the VM properties + } + else if (pe.Properties.ReplicationProviderSettings is OnPremProtectionEntityProviderSettings) + { + OnPremProtectionEntityProviderSettings providerSettings = + (OnPremProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + } + } + else + { + OnPremProtectionEntityProviderSettings providerSettings = + (OnPremProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + } } - */ if (pe.Properties.ProtectionProfile != null && !string.IsNullOrWhiteSpace(pe.Properties.ProtectionProfile.Id)) @@ -721,6 +825,22 @@ public ASRProtectionEntity(ProtectionEntity pe) } } + private void UpdateDiskDetails(AzureVmDiskDetails diskDetails) + { + this.Disks = new List(); + foreach (var disk in diskDetails.Disks) + { + VirtualHardDisk hd = new VirtualHardDisk(); + hd.Id = disk.Id; + hd.Name = disk.Name; + this.Disks.Add(hd); + } + + this.OSDiskId = diskDetails.VHDId; + this.OSDiskName = diskDetails.OsDisk; + this.OS = diskDetails.OsType; + } + /// /// Initializes a new instance of the class with /// required parameters. @@ -863,25 +983,25 @@ public ASRProtectionEntity( /// public ASRProtectionProfile ProtectionProfile { get; set; } - ///// - ///// Gets or sets OSDiskVHDId. - ///// - //public string OSDiskId { get; set; } + /// + /// Gets or sets OSDiskVHDId. + /// + public string OSDiskId { get; set; } - ///// - ///// Gets or sets OS DiskName. - ///// - //public string OSDiskName { get; set; } + /// + /// Gets or sets OS DiskName. + /// + public string OSDiskName { get; set; } - ///// - ///// Gets or sets OS. - ///// - //public string OS { get; set; } + /// + /// Gets or sets OS. + /// + public string OS { get; set; } - ///// - ///// Gets or sets OS. - ///// - //public List Disks { get; set; } + /// + /// Gets or sets OS. + /// + public List Disks { get; set; } /// /// Gets or sets Replication provider. diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs index 339d73e7dc55..a5602cba7528 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs @@ -290,6 +290,15 @@ internal static string ProtectionEntityNotProtected { } } + /// + /// Looks up a localized string similar to Protection Profile {0} is not associated with the Vault {1}. + /// + internal static string ProtectionProfileNotFound { + get { + return ResourceManager.GetString("ProtectionProfileNotFound", resourceCulture); + } + } + /// /// Looks up a localized string similar to RecoveryPlan {0} is not associated with the Vault {1}. /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx index efae6ac8868c..6dcf619cdbc0 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx @@ -277,4 +277,7 @@ Please provide a storage account with the same location as that of the vault. Vault {0} cannot be deleted as it contains registered servers. Unregister them and then retry the operation. + + Protection Profile {0} is not associated with the Vault {1} + \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs index 536457160936..282d3f34dc93 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs @@ -113,12 +113,39 @@ private void GetByFriendlyName() /// private void GetByName() { - ProtectionEntityResponse protectionEntityResponse = + // Commenting below code as Get PE by Name is faiing for somereason in service. + // Taking alternate route + + //ProtectionEntityResponse protectionEntityResponse = + // RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + // this.ProtectionContainer.Name, + // this.Name); + + //this.WriteProtectionEntity(protectionEntityResponse.ProtectionEntity); + + ProtectionEntityListResponse protectionEntityListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.ProtectionContainer.Name, - this.Name); + this.ProtectionContainer.Name); - this.WriteProtectionEntity(protectionEntityResponse.ProtectionEntity); + bool found = false; + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.Name, pe.Name, true)) + { + this.WriteProtectionEntity(pe); + found = true; + break; + } + } + + if (!found) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.ProtectionEntityNotFound, + this.Name, + this.ProtectionContainer.FriendlyName)); + } } /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs index 847570f4c423..850f7ad634bc 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Set Protection Entity protection state. /// - [Cmdlet(VerbsCommon.Set, "AzureSiteRecoveryProtectionEntity", DefaultParameterSetName = ASRParameterSets.ByPEObject, SupportsShouldProcess = true)] + [Cmdlet(VerbsCommon.Set, "AzureSiteRecoveryProtectionEntity", DefaultParameterSetName = ASRParameterSets.EnterpriseToEnterprise, SupportsShouldProcess = true)] [OutputType(typeof(ASRJob))] public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase { @@ -33,11 +33,6 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// private LongRunningOperationResponse response = null; - /// - /// Protection Status of the entity. - /// - private bool alreadyEnabled = false; - /// /// Holds either Name (if object is passed) or ID (if IDs are passed) of the PE. /// @@ -46,20 +41,36 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// /// Gets or sets Protection Entity Object. /// - [Parameter(ParameterSetName = ASRParameterSets.ByPEObject, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionEntity ProtectionEntity { get; set; } + /// + /// Gets or sets Protection profile. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public ASRProtectionProfile ProtectionProfile { get; set; } + /// /// Gets or sets Protection to set, either enable or disable. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.EnableProtection, Constants.DisableProtection)] public string Protection { get; set; } + /// + /// Gets or sets OS disk name. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [ValidateNotNullOrEmpty] + public string OSDiskName { get; set; } + /// /// Gets or sets switch parameter. On passing, command waits till completion. /// @@ -81,13 +92,7 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// public override void ExecuteCmdlet() { - switch (this.ParameterSetName) - { - case ASRParameterSets.ByPEObject: - this.targetNameOrId = this.ProtectionEntity.FriendlyName; - break; - } - + this.targetNameOrId = this.ProtectionEntity.FriendlyName; this.ConfirmAction( this.Force.IsPresent || 0 != string.CompareOrdinal(this.Protection, Constants.DisableProtection), string.Format(Properties.Resources.DisableProtectionWarning, this.targetNameOrId), @@ -97,12 +102,63 @@ public override void ExecuteCmdlet() { try { - // ADD SOME VALIDATIONS - if (this.Protection == Constants.EnableProtection) { EnableProtectionInput input = new EnableProtectionInput(); + // Considering no PP input for E2E, if needed, change below logic + // for E2E, consider the profile created PS & a profile created in service + if (this.ProtectionProfile != null && + 0 == string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + input.ProtectionProfileId = this.ProtectionProfile.Name; + AzureEnableProtectionInput providerSettings = new AzureEnableProtectionInput(); + providerSettings.HvHostVmId = this.ProtectionEntity.FabricObjectId; + providerSettings.VmName = this.ProtectionEntity.FriendlyName; + + // Id disk details are missing in input PE object, get the latest PE. + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + if (string.IsNullOrEmpty(this.ProtectionEntity.OS)) + { + // Just checked for OS to see whether the disk details got filled up or not + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + providerSettings.OSType = this.ProtectionEntity.OS; + + if (string.IsNullOrWhiteSpace(this.OSDiskName)) + { + providerSettings.VHDId = this.ProtectionEntity.OSDiskId; + } + else + { + foreach (var disk in this.ProtectionEntity.Disks) + { + if (0 == string.Compare(disk.Name, this.OSDiskName, true)) + { + providerSettings.VHDId = disk.Id; + break; + } + } + } + + input.ProviderSettings = providerSettings; + } + this.response = RecoveryServicesClient.EnableProtection( this.ProtectionEntity.ProtectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs index 9bf5c2095fee..b99130a7f375 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs @@ -84,30 +84,29 @@ private void SetPECommit() { var request = new CommitFailoverRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } } request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.ReplicationProviderSettings = string.Empty; - request.FailoverDirection = this.Direction; - - //if (this.ProtectionEntity.ActiveLocation == Constants.PrimaryLocation) - //{ - // request.FailoverDirection = Constants.RecoveryToPrimary; - //} - //else - //{ - // request.FailoverDirection = Constants.PrimaryToRecovery; - //} + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryCommitFailover( this.protectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs index ae72f7c02df6..43af664ecc9e 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs @@ -53,6 +53,15 @@ public class StartAzureSiteRecoveryPlannedFailoverJob : SiteRecoveryCmdletBase Constants.RecoveryToPrimary)] public string Direction { get; set; } + /// + /// Gets or sets the Optimize value. + /// + [Parameter] + [ValidateSet( + Constants.ForDowntime, + Constants.ForSynchronization)] + public string Optimize { get; set; } + #endregion Parameters /// @@ -84,20 +93,55 @@ private void StartPEPlannedFailover() { var request = new PlannedFailoverRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - this.ValidateUsageById(this.ProtectionEntity.ReplicationProvider, Constants.ProtectionEntityId); + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } } - request.ReplicationProviderSettings = string.Empty; - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.FailoverDirection = this.Direction; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + else + { + AzureFailbackInput failbackInput = new AzureFailbackInput() + { + CreateRecoveryVmIfDoesntExist = false, + SkipDataSync = this.Optimize == Constants.ForDowntime ? true : false + }; + request.ReplicationProviderSettings = failbackInput; + } + } LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryPlannedFailover( diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs index 1ad68a8014ef..4eb2ce8a3ab7 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs @@ -68,7 +68,7 @@ public override void ExecuteCmdlet() { case ASRParameterSets.ByPEObject: this.networkType = "DisconnectedVMNetworkTypeForTestFailover"; - this.UpdateRequiredParametersAndStartFailover(); + this.StartPETestFailover(); break; } } @@ -91,20 +91,48 @@ private void StartPETestFailover() this.ProtectionEntity.ProtectionContainerId, this.ProtectionEntity.Name); this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - /* this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); */ } - request.ReplicationProviderSettings = string.Empty; - - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; request.FailoverDirection = this.Direction; - request.NetworkID = this.networkId; request.NetworkType = this.networkType; + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) + { + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + + request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryTestFailover( this.ProtectionEntity.ProtectionContainerId, @@ -117,21 +145,5 @@ private void StartPETestFailover() WriteObject(new ASRJob(jobResponse.Job)); } - - /// - /// Updates required parameters and starts test failover. - /// - private void UpdateRequiredParametersAndStartFailover() - { - /* if (!this.ProtectionEntity.Protected) - { - throw new InvalidOperationException( - string.Format( - Properties.Resources.ProtectionEntityNotProtected, - this.ProtectionEntity.Name)); - } */ - - this.StartPETestFailover(); - } } } \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs index f3c8c29301b3..1e4dab170dd2 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs @@ -92,21 +92,7 @@ public override void ExecuteCmdlet() private void StartPEUnplannedFailover() { var request = new UnplannedFailoverRequest(); - if (this.ProtectionEntity == null) - { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); - } - - request.ReplicationProviderSettings = string.Empty; - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; request.FailoverDirection = this.Direction; request.SourceSiteOperations = this.PerformSourceSideActions ? Constants.Required : Constants.NotRequired; LongRunningOperationResponse response = @@ -115,6 +101,45 @@ private void StartPEUnplannedFailover() this.protectionEntityId, request); + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) + { + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + + request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + } + JobResponse jobResponse = RecoveryServicesClient .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs index 8bf1665b3463..7a55da8cf0c5 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs @@ -83,22 +83,56 @@ private void SetPEReprotect() { var request = new ReprotectRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - this.protectionEntityId); - } + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - request.ReplicationProviderSettings = string.Empty; + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.FailoverDirection = this.Direction; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if ((this.Direction == Constants.PrimaryToRecovery && + this.ProtectionEntity.ActiveLocation == Constants.RecoveryLocation) || + (this.Direction == Constants.RecoveryToPrimary && + this.ProtectionEntity.ActiveLocation == Constants.PrimaryLocation)) + { + throw new ArgumentException("Parameter value is not correct.", "Direction"); + } + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureReprotectInput reprotectInput = new AzureReprotectInput() + { + HvHostVmId = this.ProtectionEntity.FabricObjectId, + VmName = this.ProtectionEntity.Name, + OSType = this.ProtectionEntity.OS, + VHDId = this.ProtectionEntity.OSDiskId + }; + + request.ReplicationProviderSettings = reprotectInput; + } + } LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryReprotection( this.protectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs index 0366d7d3811e..91fb9b962935 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs @@ -77,14 +77,26 @@ private void GetByFriendlyName() { ProtectionProfileListResponse profileListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectionProfile(); + bool found = false; foreach (ProtectionProfile profile in profileListResponse.ProtectionProfiles) { if (0 == string.Compare(this.FriendlyName, profile.CustomData.FriendlyName, true)) { this.WriteProfile(profile); + found = true; } } + + if (!found) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.ProtectionProfileNotFound, + this.FriendlyName, + PSRecoveryServicesClient.asrVaultCreds.ResourceName)); + } + } /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs index dd8cd5bed180..adccc60b8d51 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Creates Azure Site Recovery Protection Profile object in memory. /// - [Cmdlet(VerbsCommon.New, "AzureSiteRecoveryProtectionProfile")] + [Cmdlet(VerbsCommon.New, "AzureSiteRecoveryProtectionProfile", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase { /// @@ -38,22 +38,25 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Name of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] public string Name { get; set; } /// /// Gets or sets Replication Provider of the Protection Profile. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( - Constants.HyperVReplica)] + Constants.HyperVReplica, + Constants.HyperVReplicaAzure)] public string ReplicationProvider { get; set; } /// /// Gets or sets a value for Replication Method of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.OnlineReplicationMethod, @@ -63,7 +66,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Replication Frequency of the Protection Profile in seconds. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.Thirty, @@ -74,7 +78,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Recovery Points of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] [DefaultValue(0)] public int RecoveryPoints { get; set; } @@ -82,7 +87,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Application Consistent Snapshot Frequency of the Protection Profile in hours. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] [DefaultValue(0)] public int ApplicationConsistentSnapshotFrequencyInHours { get; set; } @@ -90,21 +96,21 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets a value indicating whether Compression needs to be Enabled on the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [DefaultValue(false)] public SwitchParameter CompressionEnabled { get; set; } /// /// Gets or sets the Replication Port of the Protection Profile. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] [ValidateNotNullOrEmpty] public ushort ReplicationPort { get; set; } /// /// Gets or sets the Replication Port of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.AuthenticationTypeCertificate, @@ -114,7 +120,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Replication Start time of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] public TimeSpan? ReplicationStartTime { get; set; } @@ -122,10 +129,24 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// Gets or sets a value indicating whether Replica should be Deleted on /// disabling protection of a protection entity protected by the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [DefaultValue(false)] public SwitchParameter AllowReplicaDeletion { get; set; } + /// + /// Gets or sets a value Recovery Azure Subscription of the Protection Profile for E2A scenarios. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string RecoveryAzureSubscription { get; set; } + + /// + /// Gets or sets Recovery Azure Storage Account Name of the Protection Profile for E2A scenarios. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string RecoveryAzureStorageAccount { get; set; } + /// /// Gets or sets switch parameter. On passing, command does not ask for confirmation. /// @@ -141,7 +162,16 @@ public override void ExecuteCmdlet() { try { - this.EnterpriseToEnterpriseProtectionProfileObject(); + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseProtectionProfileObject(); + break; + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureProtectionProfileObject(); + break; + } + } catch (Exception exception) { @@ -164,7 +194,8 @@ private void EnterpriseToEnterpriseProtectionProfileObject() PSRecoveryServicesClient.ValidateReplicationStartTime(this.ReplicationStartTime); - ushort replicationFrequencyInSeconds = PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); + ushort replicationFrequencyInSeconds = + PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); HyperVReplicaProtectionProfileInput hyperVReplicaProtectionProfileInput = new HyperVReplicaProtectionProfileInput() @@ -173,17 +204,74 @@ HyperVReplicaProtectionProfileInput hyperVReplicaProtectionProfileInput ReplicationFrequencyInSeconds = replicationFrequencyInSeconds, OnlineReplicationStartTime = this.ReplicationStartTime, Compression = this.CompressionEnabled == true ? "Enable" : "Disable", - InitialReplicationMethod = (string.Compare(this.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline", + InitialReplicationMethod = + (string.Compare(this.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline", RecoveryPoints = this.RecoveryPoints, ReplicationPort = this.ReplicationPort, ReplicaDeletion = this.AllowReplicaDeletion == true ? "Required" : "NotRequired", - AllowedAuthenticationType = (ushort)((string.Compare(this.Authentication, Constants.AuthenticationTypeKerberos, StringComparison.OrdinalIgnoreCase) == 0) ? 1 : 2) + AllowedAuthenticationType = + (ushort)((string.Compare(this.Authentication, Constants.AuthenticationTypeKerberos, StringComparison.OrdinalIgnoreCase) == 0) ? 1 : 2) }; CreateProtectionProfileInput createProtectionProfileInput = new CreateProtectionProfileInput(); createProtectionProfileInput.Name = this.Name; createProtectionProfileInput.ReplicationProvider = this.ReplicationProvider; - createProtectionProfileInput.ReplicationProviderSettings = hyperVReplicaProtectionProfileInput; + createProtectionProfileInput.ReplicationProviderSettings = + hyperVReplicaProtectionProfileInput; + + LongRunningOperationResponse response = + RecoveryServicesClient.CreateProtectionProfile(createProtectionProfileInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); + } + + /// + /// Creates an E2A Protection Profile Object + /// + private void EnterpriseToAzureProtectionProfileObject() + { + if (string.Compare(this.ReplicationProvider, Constants.HyperVReplicaAzure, StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ReplicationProvider)); + } + + PSRecoveryServicesClient.ValidateReplicationStartTime(this.ReplicationStartTime); + + ushort replicationFrequencyInSeconds = + PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); + + HyperVReplicaAzureProtectionProfileInput hyperVReplicaAzureProtectionProfileInput = + new HyperVReplicaAzureProtectionProfileInput() + { + ApplicationConsistentSnapshotFrequencyInHours = + this.ApplicationConsistentSnapshotFrequencyInHours, + ReplicationInterval = replicationFrequencyInSeconds, + RecoveryPointHistoryDuration = this.RecoveryPoints, + OnlineReplicationStartTime = this.ReplicationStartTime, + Encryption = "Disable" + }; + + var storageAccount = new CustomerStorageAccount(); + storageAccount.StorageAccountName = this.RecoveryAzureStorageAccount; + storageAccount.SubscriptionId = this.RecoveryAzureSubscription; + + hyperVReplicaAzureProtectionProfileInput.StorageAccounts = + new System.Collections.Generic.List(); + hyperVReplicaAzureProtectionProfileInput.StorageAccounts.Add(storageAccount); + + CreateProtectionProfileInput createProtectionProfileInput = + new CreateProtectionProfileInput(); + createProtectionProfileInput.Name = this.Name; + createProtectionProfileInput.ReplicationProvider = this.ReplicationProvider; + createProtectionProfileInput.ReplicationProviderSettings = + hyperVReplicaAzureProtectionProfileInput; LongRunningOperationResponse response = RecoveryServicesClient.CreateProtectionProfile(createProtectionProfileInput); diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs index 64dbc5d48bde..7ace2ed55218 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs @@ -23,8 +23,8 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Adds Azure Site Recovery Protection Profile settings to a Protection Container. /// - [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileAssociationJob")] - // [OutputType(typeof(ASRJob))] + [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileAssociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [OutputType(typeof(ASRJob))] public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecoveryCmdletBase { #region Parameters @@ -33,6 +33,7 @@ public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecover /// Gets or sets Protection Profile object. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionProfile ProtectionProfile { get; set; } @@ -40,6 +41,7 @@ public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecover /// Gets or sets Protection Container to be applied the Protection Profile settings on. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] public ASRProtectionContainer PrimaryProtectionContainer { get; set; } @@ -59,7 +61,15 @@ public override void ExecuteCmdlet() { try { - this.EnterpriseToEnterpriseAssociation(); + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureAssociation(); + break; + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseAssociation(); + break; + } } catch (Exception exception) { @@ -75,10 +85,6 @@ private void EnterpriseToEnterpriseAssociation() if (string.Compare( this.ProtectionProfile.ReplicationProvider, Constants.HyperVReplica, - StringComparison.OrdinalIgnoreCase) != 0 && - string.Compare( - this.ProtectionProfile.ReplicationProvider, - Constants.San, StringComparison.OrdinalIgnoreCase) != 0) { throw new InvalidOperationException( @@ -103,13 +109,36 @@ private void EnterpriseToEnterpriseAssociation() this.WriteObject(new ASRJob(jobResponse.Job)); } - ///// - ///// Writes Job - ///// - ///// Job object - //private void WriteJob(Microsoft.WindowsAzure.Management.SiteRecovery.Models.Job job) - //{ - // this.WriteObject(new ASRJob(job)); - //} + /// + /// Associates Azure protection profile with enterprise based protection containers + /// + private void EnterpriseToAzureAssociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); + } + + ProtectionProfileAssociationInput protectionProfileAssociationInput = + new ProtectionProfileAssociationInput( + this.PrimaryProtectionContainer.Name, + Constants.AzureContainer); + + LongRunningOperationResponse response = RecoveryServicesClient.AssociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + protectionProfileAssociationInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + this.WriteObject(new ASRJob(jobResponse.Job)); + } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs index f75667c55354..18c659d9a5ac 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs @@ -21,8 +21,8 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Adds Azure Site Recovery Protection Profile settings to a Protection Container. /// - [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileDissociationJob")] - // [OutputType(typeof(ASRJob))] + [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileDissociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [OutputType(typeof(ASRJob))] public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecoveryCmdletBase { /// @@ -36,6 +36,7 @@ public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecove /// Gets or sets Protection Profile object. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionProfile ProtectionProfile { get; set; } @@ -43,6 +44,7 @@ public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecove /// Gets or sets Protection Container to be removed the Protection Profile settings off. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] public ASRProtectionContainer PrimaryProtectionContainer { get; set; } @@ -62,29 +64,80 @@ public override void ExecuteCmdlet() { try { - string recoveryContainerId = string.Empty; - recoveryContainerId = this.RecoveryProtectionContainer.ID; + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureDissociation(); + break; + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseDissociation(); + break; + } + } + catch (Exception exception) + { + this.HandleException(exception); + } + } - DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); - disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; - disassociateProtectionProfileInput.RecoveryProtectionContainerId = this.RecoveryProtectionContainer.Name; - disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; - disassociateProtectionProfileInput.ReplicationProviderSettings = string.Empty; + private void EnterpriseToEnterpriseDissociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplica, + StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); + } - this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( - this.ProtectionProfile.Name, - disassociateProtectionProfileInput); + DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); + disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; + disassociateProtectionProfileInput.RecoveryProtectionContainerId = this.RecoveryProtectionContainer.Name; + disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; + disassociateProtectionProfileInput.ReplicationProviderSettings = new ProtectionProfileProviderSpecificInput(); - JobResponse jobResponse = - RecoveryServicesClient - .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + disassociateProtectionProfileInput); - WriteObject(new ASRJob(jobResponse.Job)); - } - catch (Exception exception) + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); + } + + private void EnterpriseToAzureDissociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase) != 0) { - this.HandleException(exception); + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); } + + DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); + disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; + disassociateProtectionProfileInput.RecoveryProtectionContainerId = Constants.AzureContainer; + disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; + disassociateProtectionProfileInput.ReplicationProviderSettings = new ProtectionProfileProviderSpecificInput(); + + this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + disassociateProtectionProfileInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs index 1b57691b5c43..f439a86744d8 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs @@ -113,6 +113,24 @@ public static void UpdateVaultSettings(ASRVaultCreds asrVaultCreds) asrVaultCreds.ResourceGroupName; PSRecoveryServicesClient.asrVaultCreds.ChannelIntegrityKey = asrVaultCreds.ChannelIntegrityKey; + if (asrVaultCreds.ResourceNamespace != null) + { + PSRecoveryServicesClient.asrVaultCreds.ResourceNamespace = + asrVaultCreds.ResourceNamespace; + } + } + } + + /// + /// Imports Azure Site Recovery Vault settings. + /// + /// Provider Namespace + public static void UpdateVaultSettingsProviderNamespace(string resourceNamespace) + { + object updateVaultSettingsOneAtATime = new object(); + lock (updateVaultSettingsOneAtATime) + { + PSRecoveryServicesClient.asrVaultCreds.ResourceNamespace = resourceNamespace; } } @@ -138,32 +156,5 @@ public static string GenerateRandomKey(int size) crypto.GetBytes(key); return Convert.ToBase64String(key); } - - /// - /// Returns the cloud id given a container id. - /// - /// Protection Container Id - /// Cloud Id object - public static void GetCloudIdFromContainerId(string protectionContainerId, out string cloudId) - { - // The first part before '_' is server id. Rest will be cloud id. - var index = protectionContainerId.IndexOf('_'); - - if (index != -1) - { - try - { - cloudId = protectionContainerId.Substring(index + 1, protectionContainerId.Length - index - 1); - } - catch - { - cloudId = null; - } - } - else - { - cloudId = null; - } - } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config index 6927ccb714e3..e66baca86202 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config @@ -4,12 +4,13 @@ - + + diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj index c3203704d261..e3a73b077cb3 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -79,7 +79,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll @@ -438,8 +438,12 @@ Always - - + + PreserveNewest + + + PreserveNewest + Always diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config index 4f5ac4dea2a4..ef62fa673ae9 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj index 5b3dfab6313c..a5ed86ef9b5f 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj +++ b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj @@ -234,7 +234,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -337,4 +337,4 @@ - + \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml b/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml index b3c0925595e2..7c6f6422c2d5 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml +++ b/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml @@ -1643,7 +1643,7 @@ Switch-AzureMode –Name AzureResourceManager Get-AzureSqlServerActiveDirectoryAdministrator - The Get-AzureSqlServerActiveDirectoryAdministrator cmdlet returns information about an Azure Active Directory administrator for an Azure SQL Server in the current subscription. + Returns information about an Azure Active Directory administrator for Azure SQL Server in the current subscription. @@ -1653,6 +1653,7 @@ Switch-AzureMode –Name AzureResourceManager + The Get-AzureSqlServerActiveDirectoryAdministrator cmdlet returns information about an Azure Active Directory administrator for Azure SQL Server in the current subscription. Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -1660,7 +1661,7 @@ Switch-AzureMode –Name AzureResourceManager Get-AzureSqlServerActiveDirectoryAdministrator - + ServerName The name of the Azure SQL Server containing the Azure Active Directory administrator. @@ -1684,7 +1685,7 @@ Switch-AzureMode –Name AzureResourceManager - + ServerName The name of the Azure SQL Server containing the Azure Active Directory administrator. @@ -1729,7 +1730,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -1741,7 +1743,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -1754,8 +1757,39 @@ Switch-AzureMode –Name AzureResourceManager + + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS C:\>Get-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" + + Returns information about an Azure Active Directory administrator for Azure SQL Database Server "aad_managed_demo" associated with resource group "Group-23" + + + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + Remove-AzureSqlServerActiveDirectoryAdministrator + + + + Set-AzureSqlServerActiveDirectoryAdministrator + + @@ -6575,7 +6609,7 @@ Switch-AzureMode –Name AzureResourceManager Remove-AzureSqlServerActiveDirectoryAdministrator - Removes an Azure Active Directory administrator for an Azure SQL Server in the current subscription. + Removes an Azure Active Directory administrator for Azure SQL Server in the current subscription. @@ -6585,6 +6619,7 @@ Switch-AzureMode –Name AzureResourceManager + The Remove-AzureSqlServerActiveDirectoryAdministrator cmdlet removes an Azure Active Directory administrator for Azure SQL Server in the current subscription. Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -6592,6 +6627,13 @@ Switch-AzureMode –Name AzureResourceManager Remove-AzureSqlServerActiveDirectoryAdministrator + + Force + + Skip confirmation message and remove the Azure SQL Server. + + SwitchParameter + ServerName @@ -6599,17 +6641,10 @@ Switch-AzureMode –Name AzureResourceManager String - - Force - - Skip confirmation message and remove the Azure SQL Server Active Directory administrator. - - SwitchParameter - ResourceGroupName - The name of the resource group that contains the Azure SQL Server Active Directory administrator to remove. + The name of the resource group that contains the Azure SQL Server to remove. String @@ -6637,26 +6672,26 @@ Switch-AzureMode –Name AzureResourceManager - - ServerName + + Force - The name of the Azure SQL Server to remove. + Skip confirmation message and remove the Azure SQL Server. - String + SwitchParameter - String + SwitchParameter none - - Force + + ServerName - Skip confirmation message and remove the Azure SQL Server. + The name of the Azure SQL Server to remove. - SwitchParameter + String - SwitchParameter + String none @@ -6718,7 +6753,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -6730,7 +6766,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -6743,8 +6780,43 @@ Switch-AzureMode –Name AzureResourceManager + + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS c:\> Remove-AzureSqlServerActiveDirectoryAdministrator -ResourceGroupName "Group-23" –ServerName "aad-managed-demo" + + This command removes an Azure Active Directory administrator for Azure SQL Database Server "aad_managed_demo" associated with resource group "Group-23" + + + +Confirm +Are you sure you want to remove the Azure Sql Server Active Directory Administrator on server 'aadtest'? +[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-233 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + Get-AzureSqlServerActiveDirectoryAdministrator + + + + Set-AzureSqlServerActiveDirectoryAdministrator + + @@ -9264,10 +9336,20 @@ Switch-AzureMode –Name AzureResourceManager Set - AzureSqlServer + AzureSqlServerActiveDirectoryAdministrator + The Set-AzureSqlServerActiveDirectoryAdministrator cmdlet provisions an Azure Active Directory administrator for Azure SQL Server in the current subscription. + At any given time only one administrator can be provisioned + The following members of Azure Active Directory can be provisioned as an administrator for Azure SQL Server + Native members of Azure Active Directory + Federated members of Azure Active Directory + Imported members from other Azure Active Directories who are native or federated members + Active directory groups created as security groups + + Microsoft accounts (i.e. outllok.com, hotmail.com, live.com) or other guest accounts (i.e. gmail.com, yahoo.com) are not supported as administrators + For manageability purpose it is recommended to provision a dedicated Azure Active Directory group as an administrator Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -9278,35 +9360,36 @@ Switch-AzureMode –Name AzureResourceManager DisplayName - + Diplay name of the Azure AD administrator (user or group) to be provisioned for SQL Server. String ObjectId - + The unique object ID of the Azure AD administrator to be provisioned for SQL Server. Required if Azure AD <DisplayName> parameter is not unique. + Guid ServerName - + The name of the Azure SQL Server that contains the Azure Active Directory administrator you want to change. String ResourceGroupName - + The name of the resource group that contains the Azure SQL Server with the Azure Active Directory administrator to change. String Profile - + In-memory profile. AzureProfile @@ -9316,7 +9399,7 @@ Switch-AzureMode –Name AzureResourceManager DisplayName - + Diplay name of the Azure AD administrator (user or group) to be provisioned for SQL Server. String @@ -9328,7 +9411,8 @@ Switch-AzureMode –Name AzureResourceManager ObjectId - + The unique object ID of the Azure AD administrator to be provisioned for SQL Server. Required if Azure AD <DisplayName> parameter is not unique. + Guid @@ -9340,7 +9424,7 @@ Switch-AzureMode –Name AzureResourceManager ServerName - + The name of the Azure SQL Server that contains the Azure Active Directory administrator you want to change. String @@ -9352,7 +9436,7 @@ Switch-AzureMode –Name AzureResourceManager ResourceGroupName - + The name of the resource group that contains the Azure SQL Server with the Azure Active Directory administrator to change. String @@ -9361,184 +9445,6 @@ Switch-AzureMode –Name AzureResourceManager - - Profile - - - - AzureProfile - - AzureProfile - - - - - - - - - InputType - - - - - System.String - - - - - - - OutputType - - - - - System.Object - - - - - - - - - This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters. - - - - - - - - - - - Set-AzureSqlServerFirewallRule - - Updates an Azure SQL Server firewall rule. - - - - - Set - AzureSqlServerFirewallRule - - - - The Set-AzureSqlServerFirewallRule cmdlet updates an Azure SQL Server firewall rule. - Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: -Switch-AzureMode –Name AzureResourceManager - For more information, see Using Windows PowerShell with Resource Manager. - - - - Set-AzureSqlServerFirewallRule - - FirewallRuleName - - The name of the Azure SQL Server firewall rule to update. - - String - - - StartIpAddress - - The new starting IP address for the firewall rule. - - String - - - EndIpAddress - - The new ending IP address for this rule. - - String - - - ServerName - - The name of the Azure SQL Server that contains the firewall rule you want to change. - - String - - - ResourceGroupName - - The name of the resource group that contains the Azure SQL Server with the firewall rule to change. - - String - - - Profile - - In-memory profile. - - AzureProfile - - - - - - FirewallRuleName - - The name of the Azure SQL Server firewall rule to update. - - String - - String - - - none - - - StartIpAddress - - The new starting IP address for the firewall rule. - - String - - String - - - none - - - EndIpAddress - - The new ending IP address for this rule. - - String - - String - - - none - - - ServerName - - The name of the Azure SQL Server that contains the firewall rule you want to change. - - String - - String - - - none - - - ResourceGroupName - - The name of the resource group that contains the Azure SQL Server with the firewall rule to change. - - String - - String - - - none - Profile @@ -9549,7 +9455,7 @@ Switch-AzureMode –Name AzureResourceManager AzureProfile - none + @@ -9560,7 +9466,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -9572,7 +9479,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -9586,16 +9494,66 @@ Switch-AzureMode –Name AzureResourceManager - -------------------------- Code Example -------------------------- + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS C:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" + + This command provisions an Azure Active Directory administrator group “DBAs” for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23" + + + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + -------------------------- Code Example 2 -------------------------- PS C:\> - PS C:\>Set-AzureSqlServerFirewallRule + PS C:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "Bob Johns" + This command provisions an Azure Active Directory user "Bob Johns" as an administrator for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23" + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo Bob Johns 11E95548-B179-4FE1-9AF4-ACA49D13ABB9 + + + + + + + + + + + -------------------------- Code Example 3 -------------------------- + + PS C:\> + + PS c:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" –ObjectId "40b79501-b343-44ed-9ce7-da4c8cc7353b" + + This command provisions an Azure Active Directory administrator group “DBAs” for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23". To enforce <DisplayName> uniqueness, an optional parameter <–ObjectId > "40b79501-b343-44ed-9ce7-da4c8cc7353b" representing Azure AD ObjectID for the DBAs group is included - + + PS c:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" –ObjectId "40b79501-b343-44ed-9ce7-da4c8cc7353b" + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b @@ -9608,19 +9566,11 @@ Switch-AzureMode –Name AzureResourceManager - Azure_SqlDatabase - - - - Get-AzureSqlServerFirewallRule + Get-AzureSqlServerActiveDirectoryAdministrator - New-AzureSqlServerFirewallRule - - - - Remove-AzureSqlServerFirewallRule + Remove-AzureSqlServerActiveDirectoryAdministrator diff --git a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs index 8833ba027e43..8f8748c4718b 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs @@ -61,7 +61,7 @@ internal Resources() { } /// - /// Looks up a localized string similar to More than one Active Directory group with the display name '{0}' was found. Please provide an object id to select the correct group.. + /// Looks up a localized string similar to More than one Active Directory group with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct group. To get the object id use Get-AzureADGroup -SearchString "{0}". /// internal static string ADGroupMoreThanOneFound { get { @@ -70,7 +70,7 @@ internal static string ADGroupMoreThanOneFound { } /// - /// Looks up a localized string similar to Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or application service principal you are authorizing is registered in the current subscription's Azure Active directory.. + /// Looks up a localized string similar to Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or group you are authorizing is registered in the current subscription's Azure Active directory. To get a list of Azure Active Directory groups use Get-AzureADGroup, or to get a list of Azure Active Directory users use Get-AzureADUser.. /// internal static string ADObjectNotFound { get { @@ -79,7 +79,7 @@ internal static string ADObjectNotFound { } /// - /// Looks up a localized string similar to More than one Azure Active Directory user with the display name '{0}' was found. Please provide an object id to select the correct user.. + /// Looks up a localized string similar to More than one Azure Active Directory user with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct user. To get the object id use Get-AzureADUser -SearchString "{0}". /// internal static string ADUserMoreThanOneFound { get { @@ -177,6 +177,15 @@ internal static string EnterUserId { } } + /// + /// Looks up a localized string similar to The Active Directory Group '{0}' is not security enabled. Only Azure Active Directory Security Enabled Groups are supported.. + /// + internal static string InvalidADGroupNotSecurity { + get { + return ResourceManager.GetString("InvalidADGroupNotSecurity", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot use the '{0}' option with other event types.. /// @@ -186,6 +195,15 @@ internal static string InvalidEventTypeSet { } } + /// + /// Looks up a localized string similar to Please use Set-AzureEnvironment to set a valid GraphEndpoint in the AzureEnvironment. . + /// + internal static string InvalidGraphEndpoint { + get { + return ResourceManager.GetString("InvalidGraphEndpoint", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot use audit table retention without specifying TableIdentifier. You may want to use '{0}'.. /// diff --git a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx index 62ed6c78604c..4206ff9e5601 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx +++ b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx @@ -232,13 +232,13 @@ Auditing cannot be enabled . Upgrade to Basic, Standard or Premium Service Tier to enable auditing on your database(s) - More than one Active Directory group with the display name '{0}' was found. Please provide an object id to select the correct group. + More than one Active Directory group with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct group. To get the object id use Get-AzureADGroup -SearchString "{0}" - Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or application service principal you are authorizing is registered in the current subscription's Azure Active directory. + Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or group you are authorizing is registered in the current subscription's Azure Active directory. To get a list of Azure Active Directory groups use Get-AzureADGroup, or to get a list of Azure Active Directory users use Get-AzureADUser. - More than one Azure Active Directory user with the display name '{0}' was found. Please provide an object id to select the correct user. + More than one Azure Active Directory user with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct user. To get the object id use Get-AzureADUser -SearchString "{0}" Please set a valid tenant id in the AzureEnvironment. @@ -249,4 +249,10 @@ Are you sure you want to remove the Azure Sql Server Active Directory Administrator on server '{0}'? + + The Active Directory Group '{0}' is not security enabled. Only Azure Active Directory Security Enabled Groups are supported. + + + Please use Set-AzureEnvironment to set a valid GraphEndpoint for the current AzureEnvironment. + \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs index ee7dabb2dd61..500a365733d5 100644 --- a/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs +++ b/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs @@ -65,6 +65,10 @@ public MicrosoftAzureCommandsResourcesModelsActiveDirectory.ActiveDirectoryClien { if (_activeDirectoryClient == null) { + if (!Profile.Context.Environment.IsEndpointSet(AzureEnvironment.Endpoint.Graph)) + { + throw new ArgumentException(string.Format(Resources.InvalidGraphEndpoint)); + } _activeDirectoryClient = new MicrosoftAzureCommandsResourcesModelsActiveDirectory.ActiveDirectoryClient(Profile.Context); } return this._activeDirectoryClient; @@ -192,6 +196,13 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat { // Only one group was found. Get the group display name and object id var group = groupList.First(); + + // Only support Security Groups + if (group.SecurityEnabled.HasValue && !group.SecurityEnabled.Value) + { + throw new ArgumentException(string.Format(Resources.InvalidADGroupNotSecurity, displayName)); + } + return new ServerAdministratorCreateOrUpdateProperties() { Login = group.DisplayName, @@ -211,6 +222,20 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat // Get a list of user from Azure Active Directory var userList = ActiveDirectoryClient.FilterUsers(filter).Where(gr => string.Equals(gr.DisplayName, displayName, StringComparison.OrdinalIgnoreCase)); + // No user was found. Check if the display name is a UPN + if (userList == null || userList.Count() == 0) + { + // Check if the display name is the UPN + filter = new MicrosoftAzureCommandsResourcesModelsActiveDirectory.ADObjectFilterOptions() + { + Id = (objectId != null && objectId != Guid.Empty) ? objectId.ToString() : null, + UPN = displayName, + Paging = true, + }; + + userList = ActiveDirectoryClient.FilterUsers(filter).Where(gr => string.Equals(gr.UserPrincipalName, displayName, StringComparison.OrdinalIgnoreCase)); + } + // No user was found if (userList == null || userList.Count() == 0) { @@ -228,7 +253,7 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat return new ServerAdministratorCreateOrUpdateProperties() { - Login = obj.DisplayName, + Login = displayName, Sid = obj.Id, TenantId = tenantId, }; @@ -243,8 +268,6 @@ protected Guid GetTenantId() { var tenantIdStr = Profile.Context.Subscription.GetPropertyAsArray(AzureSubscription.Property.Tenants).FirstOrDefault(); - string adTenant = Profile.Context.Environment.GetEndpoint(AzureEnvironment.Endpoint.AdTenant); - string graph = Profile.Context.Environment.GetEndpoint(AzureEnvironment.Endpoint.Graph); var tenantIdGuid = Guid.Empty; if (string.IsNullOrWhiteSpace(tenantIdStr) || !Guid.TryParse(tenantIdStr, out tenantIdGuid)) diff --git a/src/ResourceManager/Sql/Commands.Sql/ServerUpgrade/Cmdlet/StartAzureSqlServerUpgrade.cs b/src/ResourceManager/Sql/Commands.Sql/ServerUpgrade/Cmdlet/StartAzureSqlServerUpgrade.cs index 65137360e5cd..dd6b2c5becf2 100644 --- a/src/ResourceManager/Sql/Commands.Sql/ServerUpgrade/Cmdlet/StartAzureSqlServerUpgrade.cs +++ b/src/ResourceManager/Sql/Commands.Sql/ServerUpgrade/Cmdlet/StartAzureSqlServerUpgrade.cs @@ -53,6 +53,10 @@ public class StartAzureSqlServerUpgrade : AzureSqlServerUpgradeCmdletBase /// Check to see if the server already exists in this resource group. /// @@ -82,6 +86,29 @@ public class StartAzureSqlServerUpgrade : AzureSqlServerUpgradeCmdletBaseThe generated model from user input protected override IEnumerable ApplyUserInputToModel(IEnumerable models) { + if (ElasticPoolCollection != null) + { + // Ignore user input and recalculate StorageMb based on Dtu and coefficient of the edition + foreach (var elasticPoolProperties in ElasticPoolCollection) + { + switch (elasticPoolProperties.Edition.ToLower()) + { + case "basic": + elasticPoolProperties.StorageMb = elasticPoolProperties.Dtu * StorageMbPerDtuBasic; + break; + case "standard": + elasticPoolProperties.StorageMb = elasticPoolProperties.Dtu * StorageMbPerDtuStandard; + break; + case "premium": + elasticPoolProperties.StorageMb = elasticPoolProperties.Dtu * StorageMbPerDtuPremium; + break; + default: + throw new PSArgumentException(string.Format("Edition {0} is invalid", elasticPoolProperties.Edition)); + } + + } + } + var newEntity = new List(); newEntity.Add(new AzureSqlServerUpgradeStartModel { diff --git a/src/ResourceManager/Sql/Commands.Sql/packages.config b/src/ResourceManager/Sql/Commands.Sql/packages.config index b5dfe89de277..921846e9d034 100644 --- a/src/ResourceManager/Sql/Commands.Sql/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj index 14bda6a618e8..026167413206 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj +++ b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config b/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config index 65f0bdace8df..f572c59a7c2a 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config +++ b/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Storage/Commands.Management.Storage/Microsoft.Azure.Commands.Management.Storage.dll-Help.psd1 b/src/ResourceManager/Storage/Commands.Management.Storage/Microsoft.Azure.Commands.Management.Storage.dll-Help.psd1 index 0b56399c6c62..79ed948ad24b 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage/Microsoft.Azure.Commands.Management.Storage.dll-Help.psd1 +++ b/src/ResourceManager/Storage/Commands.Management.Storage/Microsoft.Azure.Commands.Management.Storage.dll-Help.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = 'F237EAAA-BD3A-4965-AD4A-BF38598BFEF7' diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj index 323cef4dc4db..5346ad58f98d 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config index 974efb0cf3fd..2482f7ec1839 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj index cd9fa1703184..f1f0b3a6d8c6 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config index c7051f155d84..4c7cab1e15e7 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj b/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj index 045dbab0907f..e2d09ed1bac4 100644 --- a/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj +++ b/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj @@ -63,7 +63,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Tags/Commands.Tags/packages.config b/src/ResourceManager/Tags/Commands.Tags/packages.config index b4a710776ebc..653d89f6ed0b 100644 --- a/src/ResourceManager/Tags/Commands.Tags/packages.config +++ b/src/ResourceManager/Tags/Commands.Tags/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj index 93b5b074f954..2bc0080bd04d 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config index f645be6b719f..99644abec302 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj index bcc081b32f18..6debc504e6f2 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj @@ -60,7 +60,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config index c96fdacd97a7..4769d79213ea 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj b/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj index fde38e392c94..252e30185537 100644 --- a/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj +++ b/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -159,7 +159,7 @@ {c1bda476-a5cc-4394-914d-48b0ec31a710} Commands.ScenarioTests.Common - + {d470e50a-9607-48d6-a924-4f9f86502704} Commands.Batch diff --git a/src/ResourceManager/Websites/Commands.Websites.Test/packages.config b/src/ResourceManager/Websites/Commands.Websites.Test/packages.config index 736b2a0b6a97..04e9a376fa1b 100644 --- a/src/ResourceManager/Websites/Commands.Websites.Test/packages.config +++ b/src/ResourceManager/Websites/Commands.Websites.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj b/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj index a9133be2fb39..63729c5a0fb8 100644 --- a/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj +++ b/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj @@ -79,7 +79,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Websites/Commands.Websites/packages.config b/src/ResourceManager/Websites/Commands.Websites/packages.config index 4d1e3f62e6ee..e802bf014596 100644 --- a/src/ResourceManager/Websites/Commands.Websites/packages.config +++ b/src/ResourceManager/Websites/Commands.Websites/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj b/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj index 0da5ecd26c4b..f6f9b0dde6e8 100644 --- a/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj +++ b/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj @@ -64,7 +64,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config b/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config index 08124b8e090e..31f4e44d7722 100644 --- a/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config +++ b/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj b/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj index f710839bed0e..a716704c93ec 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj +++ b/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/Automation/Commands.Automation/packages.config b/src/ServiceManagement/Automation/Commands.Automation/packages.config index e4fb132b0d34..ae9b9b4f6830 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/packages.config +++ b/src/ServiceManagement/Automation/Commands.Automation/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj index 7cf6dc0e019e..8a324f301a83 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj @@ -74,7 +74,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/PIR.psd1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/PIR.psd1 index 3ecc95130782..23ae4fe4cf95 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/PIR.psd1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/PIR.psd1 @@ -12,7 +12,7 @@ ModuleToProcess = '.\Microsoft.WindowsAzure.Commands.ServiceManagement.PlatformImageRepository.dll' # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = 'a9343cbd-175c-4f72-90c7-2abe9b300644' diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config index c0acc608d07d..017f626578c5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/AzurePreview.psd1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/AzurePreview.psd1 index 9b13a354ca43..6adf57bdb356 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/AzurePreview.psd1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/AzurePreview.psd1 @@ -12,7 +12,7 @@ ModuleToProcess = '.\Microsoft.WindowsAzure.Commands.ServiceManagement.Preview.dll' # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = '1C72E555-E83F-45E4-AED2-AF3278828DCD' diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj index 683f7f803d11..be69e32226d3 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj @@ -75,7 +75,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config index 0dcd10275314..b53ed427c514 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj index 9a9356e36597..31c4cd75ae42 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj @@ -70,7 +70,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config index c5e724634841..185e8b77b84a 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj index dbe113ca48a7..c269aa22b8ba 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj @@ -76,7 +76,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config index 0dcd10275314..b53ed427c514 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj index 0a419da6543b..49a8a22837df 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/ExpressRoute.psd1 b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/ExpressRoute.psd1 index 4ba29e73400f..73ae6499b6b9 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/ExpressRoute.psd1 +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/ExpressRoute.psd1 @@ -12,7 +12,7 @@ ModuleToProcess = '.\Microsoft.WindowsAzure.Commands.ExpressRoute.dll' # Version number of this module. -ModuleVersion = '0.9.6' +ModuleVersion = '0.9.7' # ID used to uniquely identify this module GUID = 'e5b10573-30da-456a-9319-4c0a5f8bed4a' diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config index 8a2a7bd66e58..925b4af788c5 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj index de7e5cf866dc..565f4f9786a5 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj @@ -61,7 +61,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config index d68e38df2a30..c64f9f9af1c8 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj b/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj index 26bed5f7a988..7627df4c323d 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config b/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config index a923a630feb1..25633f0fa4da 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj index 45f856827847..774c08809dc7 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj @@ -55,7 +55,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config index f2b2eb0cda2c..25bd3bbdfb45 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj index 585d4f9e711f..ab38025e9960 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config index 73e6fb77a0cb..00e3732d5920 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj b/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj index c50cf7fa992b..d3aba9ae0b85 100644 --- a/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj +++ b/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj @@ -55,7 +55,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/Network/Commands.Network.Test/packages.config b/src/ServiceManagement/Network/Commands.Network.Test/packages.config index 9d06896375c8..5d3c749466c2 100644 --- a/src/ServiceManagement/Network/Commands.Network.Test/packages.config +++ b/src/ServiceManagement/Network/Commands.Network.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj b/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj index 143ab48444ea..946747aae920 100644 --- a/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj +++ b/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj @@ -64,7 +64,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Network/Commands.Network/packages.config b/src/ServiceManagement/Network/Commands.Network/packages.config index ad850683745f..ff3b7bb3d2c1 100644 --- a/src/ServiceManagement/Network/Commands.Network/packages.config +++ b/src/ServiceManagement/Network/Commands.Network/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj index 0e1626193adc..5c134d7da597 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj @@ -43,7 +43,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config index 495ccfd7d581..102ced0c7ad6 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj index 98dd301bbf2b..843a5c3a833a 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config index 6b961a88ac8f..ddedd5c68f8e 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Commands.RemoteApp.Test.csproj b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Commands.RemoteApp.Test.csproj index 1ea41f780056..5b2cf07d811b 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Commands.RemoteApp.Test.csproj +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Commands.RemoteApp.Test.csproj @@ -40,6 +40,7 @@ + @@ -53,6 +54,7 @@ + @@ -138,7 +140,7 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll - ..\..\..\packages\Microsoft.WindowsAzure.Management.RemoteApp.2.0.0\lib\net40\Microsoft.WindowsAzure.Management.RemoteApp.dll + ..\..\..\packages\Microsoft.WindowsAzure.Management.RemoteApp.2.0.2\lib\net40\Microsoft.WindowsAzure.Management.RemoteApp.dll ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/MockObject.cs b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/MockObject.cs index 9e440f01eef9..bdab7a78f70a 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/MockObject.cs +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/MockObject.cs @@ -43,6 +43,8 @@ public partial class MockObject { internal static IList mockCollectionList { get; set; } + internal static IList mockVmList { get; set; } + internal static IList mockRegionList {get; set;} internal static IList mockVNetList { get; set; } @@ -104,6 +106,10 @@ private static List ExpectedResult() { expectedResults = ConvertList(mockCollectionList); } + else if (typeof(T) == typeof(RemoteAppVm)) + { + expectedResults = ConvertList(mockVmList); + } else if (typeof(T) == typeof(Region)) { expectedResults = ConvertList (mockRegionList); diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/RemoteAppClient.cs b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/RemoteAppClient.cs index f673bf1cc1e2..9db14847cccd 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/RemoteAppClient.cs +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/RemoteAppClient.cs @@ -43,6 +43,10 @@ public abstract class RemoteAppClientTest : TestBase protected const string collectionName = "test1"; + protected const string vmName = "testVm"; + + protected const string loggedInUserUpn = "test@somedomain.com"; + protected const string templateName = "Fake_Windows.vhd"; protected const string billingPlan = "Standard"; diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/VmObjects.cs b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/VmObjects.cs new file mode 100644 index 000000000000..a473bbc35dbf --- /dev/null +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Common/VmObjects.cs @@ -0,0 +1,74 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.WindowsAzure.Commands.RemoteApp.Test.Common +{ + using Microsoft.WindowsAzure.Management.RemoteApp; + using Microsoft.WindowsAzure.Management.RemoteApp.Models; + using Moq; + using Moq.Language.Flow; + using System.Collections.Generic; + using System.Management.Automation; + using System.Net; + using System.Threading; + using System.Threading.Tasks; + + public partial class MockObject + { + public static int SetUpDefaultRemoteAppVm(Mock clientMock, string collectionName, string vmName, string userUpn, string trackingId) + { + CollectionVmsListResult response = new CollectionVmsListResult(); + OperationResultWithTrackingId restartResponse = new OperationResultWithTrackingId() + { + StatusCode = System.Net.HttpStatusCode.Accepted, + TrackingId = trackingId, + RequestId = "111-2222-4444" + }; + + response.Vms = new List() + { + new RemoteAppVm() + { + VirtualMachineName = vmName, + LoggedOnUserUpns = { userUpn, "testuser1@somedomain.com" } + }, + + new RemoteAppVm() + { + VirtualMachineName = "testVm2", + LoggedOnUserUpns = { "testuser2@somedomain.com" } + } + }; + + mockVmList = new List(); + foreach (RemoteAppVm vm in response.Vms) + { + RemoteAppVm mockVm = new RemoteAppVm() + { + VirtualMachineName = vm.VirtualMachineName, + LoggedOnUserUpns = vm.LoggedOnUserUpns + }; + mockVmList.Add(mockVm); + } + + ISetup> setup = clientMock.Setup(c => c.Collections.ListVmsAsync(collectionName, It.IsAny())); + setup.Returns(Task.Factory.StartNew(() => response)); + + ISetup> setupRestart = clientMock.Setup(c => c.Collections.RestartVmAsync(collectionName, It.IsAny(),It.IsAny())); + setupRestart.Returns(Task.Factory.StartNew(() => restartResponse)); + + return mockVmList.Count; + } + } +} diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Vm/RemoteAppVm.cs b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Vm/RemoteAppVm.cs new file mode 100644 index 000000000000..b112be74d200 --- /dev/null +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Vm/RemoteAppVm.cs @@ -0,0 +1,75 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; + +namespace Microsoft.WindowsAzure.Commands.RemoteApp.Test +{ + using Common; + using Microsoft.WindowsAzure.Management.RemoteApp; + using Microsoft.WindowsAzure.Management.RemoteApp.Cmdlets; + using Microsoft.WindowsAzure.Management.RemoteApp.Models; + using Microsoft.WindowsAzure.Commands.Common.Test.Mocks; + using Moq; + using Moq.Language.Flow; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Management.Automation; + using System.Threading; + using System.Threading.Tasks; + using Xunit; + + // Get-AzureRemoteAppCollectionUsageDetails, Get-AzureRemoteAppCollectionUsageSummary, + public class RemoteAppVmTest : RemoteAppClientTest + { + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void RestartVm() + { + int countOfExpectedCollections = 0; + RestartAzureRemoteAppVm mockCmdlet = SetUpTestCommon(); + IEnumerable trackingIds = null; + + // Required parameters for this test + mockCmdlet.CollectionName = collectionName; + mockCmdlet.UserUpn = loggedInUserUpn; + + // Setup the environment for testing this cmdlet + countOfExpectedCollections = MockObject.SetUpDefaultRemoteAppVm(remoteAppManagementClientMock, collectionName, vmName, loggedInUserUpn, trackingId); + mockCmdlet.ResetPipelines(); + + Log("Calling Restart-AzureRemoteAppVm which should return tracking id."); + + mockCmdlet.ExecuteCmdlet(); + if (mockCmdlet.runTime().ErrorStream.Count != 0) + { + Assert.True(false, + String.Format("Restart-AzureRemoteAppVm returned the following error {0}.", + mockCmdlet.runTime().ErrorStream[0].Exception.Message + ) + ); + } + + LanguagePrimitives.GetEnumerable(mockCmdlet.runTime().OutputPipeline).Cast(); + trackingIds = LanguagePrimitives.GetEnumerable(mockCmdlet.runTime().OutputPipeline).Cast(); + Assert.NotNull(trackingIds); + + Assert.Equal(1, trackingIds.Count()); + + Assert.True(trackingIds.Any(t => t.TrackingId == trackingId), "The actual result does not match the expected."); + } + } +} diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/packages.config b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/packages.config index 6efd4e03933f..679565eb19a0 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/packages.config +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/packages.config @@ -13,7 +13,7 @@ - + diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.Designer.cs b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.Designer.cs index a6f459a583d9..d020b43b18ca 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.Designer.cs +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -87,6 +87,15 @@ internal static string CreateJobFailedError { } } + /// + /// Looks up a localized string similar to Please save your work and logoff. You will be logged off automatically after {0} seconds.. + /// + internal static string DefaultLogoffMessage { + get { + return ResourceManager.GetString("DefaultLogoffMessage", resourceCulture); + } + } + /// /// Looks up a localized string similar to Failed to generate the detailed usage informaton. Please try again and if it still does not succeed, then call Microsoft support.. /// @@ -258,6 +267,15 @@ internal static string NoVmImageFoundErrorFormat { } } + /// + /// Looks up a localized string similar to No VM was found for user {0} in collection {1}.. + /// + internal static string NoVmInCollectionForUser { + get { + return ResourceManager.GetString("NoVmInCollectionForUser", resourceCulture); + } + } + /// /// Looks up a localized string similar to Publish RemoteApp. /// @@ -303,6 +321,24 @@ internal static string RequestTimedOutFormat { } } + /// + /// Looks up a localized string similar to Restart VM {0}. + /// + internal static string RestartVmWarningCaption { + get { + return ResourceManager.GetString("RestartVmWarningCaption", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User {0} is on VM {1}. These users also have active sessions on this VM and will be logged off when the VM is rebooted: {2}. + /// + internal static string RestartVmWarningMessage { + get { + return ResourceManager.GetString("RestartVmWarningMessage", resourceCulture); + } + } + /// /// Looks up a localized string similar to Logging off user session.... /// diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.csproj b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.csproj index a9287fc65eaf..a1b23a799b2b 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.csproj +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.csproj @@ -121,7 +121,7 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.Network.7.0.3\lib\net40\Microsoft.WindowsAzure.Management.Network.dll - ..\..\..\packages\Microsoft.WindowsAzure.Management.RemoteApp.2.0.0\lib\net40\Microsoft.WindowsAzure.Management.RemoteApp.dll + ..\..\..\packages\Microsoft.WindowsAzure.Management.RemoteApp.2.0.2\lib\net40\Microsoft.WindowsAzure.Management.RemoteApp.dll ..\..\..\packages\Microsoft.WindowsAzure.Management.Storage.5.1.1\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll @@ -206,6 +206,7 @@ + @@ -248,4 +249,4 @@ --> - \ No newline at end of file + diff --git a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.resx b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.resx index fe004c0f451c..38f3f3822cb1 100644 --- a/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.resx +++ b/src/ServiceManagement/RemoteApp/Commands.RemoteApp/Commands.RemoteApp.resx @@ -2,7 +2,7 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tools/Docs/Get-AllCommands/Templates/ProjectList.xml b/tools/Docs/Get-AllCommands/Templates/ProjectList.xml new file mode 100644 index 000000000000..9954fa5f14f1 --- /dev/null +++ b/tools/Docs/Get-AllCommands/Templates/ProjectList.xml @@ -0,0 +1,4 @@ + + + +