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 ea25d9131f96..7f29843aa55f 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj @@ -161,12 +161,24 @@ Always - - - - - - + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs index fbe7b1ad1604..3e9c9fa2c9ce 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs @@ -12,8 +12,7 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using BCI = Microsoft.BackupManagementService.CommonInterface; -using BMI = Microsoft.BackupManagementService.ManagementInterface; +using Microsoft.Azure.Commands.AzureBackup.Library; using Microsoft.Azure.Management.BackupServices.Models; using System; using System.Collections.Generic; @@ -94,12 +93,12 @@ public override void ExecuteCmdlet() private string ConstructQueryFilterString() { - BMI.ContainerQueryObject containerQueryObject = new BMI.ContainerQueryObject(); + ContainerQueryObject containerQueryObject = new ContainerQueryObject(); switch (Type) { case AzureBackupContainerTypeInput.AzureVirtualMachine: - containerQueryObject.Type = BCI.ContainerType.IaasVMContainer.ToString(); + containerQueryObject.Type = ContainerType.IaasVMContainer.ToString(); break; default: break; @@ -108,10 +107,10 @@ private string ConstructQueryFilterString() switch (Status) { case AzureBackupContainerStatusInput.Registered: - containerQueryObject.Status = BCI.RegistrationStatus.Registered.ToString(); + containerQueryObject.Status = RegistrationStatus.Registered.ToString(); break; case AzureBackupContainerStatusInput.Registering: - containerQueryObject.Status = BCI.RegistrationStatus.Registering.ToString(); + containerQueryObject.Status = RegistrationStatus.Registering.ToString(); break; default: break; @@ -122,7 +121,7 @@ private string ConstructQueryFilterString() containerQueryObject.FriendlyName = ContainerResourceName; } - return BMI.BackupManagementAPIHelper.GetQueryString(containerQueryObject.GetNameValueCollection()); + return BackupManagementAPIHelper.GetQueryString(containerQueryObject.GetNameValueCollection()); } } } diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj index dceba4b35f53..f9c6e93ec533 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj @@ -55,7 +55,8 @@ ..\..\..\packages\Hyak.Common.1.0.2\lib\portable-net403+win+wpa81\Hyak.Common.dll - + + False ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll @@ -86,9 +87,13 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll + + False + ..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\AzureBackup\BackupServicesManagment\bin\Net45-Debug\Microsoft.WindowsAzure.Management.BackupServicesManagment.dll + False - Cmdlets\VaultCredentials\Microsoft.WindowsAzure.Management.Common.dll + Resources\Microsoft.WindowsAzure.Management.Common.dll ..\..\..\packages\Microsoft.WindowsAzure.Management.Scheduler.6.0.0\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll @@ -154,6 +159,7 @@ + @@ -173,10 +179,6 @@ - - {38a6741c-77a3-42a8-a846-83373be57c7f} - BackupServicesManagment - {5ee72c53-1720-4309-b54b-5fb79703195f} Commands.Common @@ -202,8 +204,6 @@ - - diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BMSCommonInterface.dll b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BMSCommonInterface.dll deleted file mode 100644 index adc7d99efcdb..000000000000 Binary files a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BMSCommonInterface.dll and /dev/null differ diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BackupManagementInterface.dll b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BackupManagementInterface.dll deleted file mode 100644 index 7b6a6c7ee742..000000000000 Binary files a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Resources/BackupManagementInterface.dll and /dev/null differ