Skip to content

Dev #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 91 commits into from
Oct 2, 2015
Merged

Dev #134

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
abb5a4f
Display detailed error messages when template deployment fails
vivsriaus Aug 10, 2015
e5a3752
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
vivsriaus Aug 13, 2015
559b49f
Fix failing test
vivsriaus Aug 13, 2015
d8c7bef
Fix error message with bad subscriptionId
jianghaolu Sep 28, 2015
5c4deed
[fixes #103913308] Add SubscriptionName to Login-AzureRMAccount
jianghaolu Sep 28, 2015
29f356a
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
jianghaolu Sep 28, 2015
53bbda8
Merge pull request #156 from Azure/dev
Sep 29, 2015
6a17f68
Merge pull request #157 from MabOneSdk/release
Sep 29, 2015
3d9e819
Merge pull request #158 from MabOneSdk/dev1
Sep 29, 2015
09ef610
Fix for Bug 4751044:Get-AzureRMBackupContainer will fail in older PSH…
Sep 29, 2015
c2fd9ed
Taking dependency on BackupServicesManagement nuget version 1.0.5
Sep 29, 2015
9a96e4a
Remove 'subscriptionIdNotFound'
jianghaolu Sep 29, 2015
7d31110
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
vivsriaus Sep 29, 2015
fa8f2fb
Get-AzureResource cmdlet include Sku contents in the output object
Sep 30, 2015
bc58043
Address comments from past PR
Sep 30, 2015
b345cd2
Fix ResourceLock issue and add CRUD test
vivsriaus Sep 30, 2015
f67d889
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Sep 30, 2015
836fdd5
Fix build issue
vivsriaus Sep 30, 2015
25212ca
Fix policy issue
vivsriaus Sep 30, 2015
6af20e1
Remove duplicate files
vivsriaus Sep 30, 2015
7398989
Add policy definition test
vivsriaus Sep 30, 2015
be603d2
Add policy assignment test
vivsriaus Sep 30, 2015
1fa6d4d
Update ChangeLog.md
milosevic81 Sep 30, 2015
cc509a7
Fixing bug with bad string literal
milosevic81 Sep 30, 2015
113cfc7
First -> FirstOrDefault
jianghaolu Sep 30, 2015
e69dd02
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Sep 30, 2015
af0956a
Fix CI issue
vivsriaus Sep 30, 2015
708e10e
Update Resources.sln
vivsriaus Sep 30, 2015
ee60665
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Sep 30, 2015
afbf176
Disabled failing DscExtension test
vivsriaus Sep 30, 2015
34ddaf4
Updating Get-AllCommands script with requested changes. Indentation a…
jongeller Sep 30, 2015
e9a19eb
Batch: Add OData Select and Expand clauses
Sep 28, 2015
70e74f9
Help docs for Select/Expand parameters
Sep 29, 2015
3da0945
Fix policy issues
vivsriaus Sep 30, 2015
a227052
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
jianghaolu Sep 30, 2015
2a82837
Implemented PR comments
Oct 1, 2015
7c92eb6
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
Oct 1, 2015
d91b200
Merge pull request #160 from Azure/dev
Oct 1, 2015
4b4ffae
Merge pull request #161 from MabOneSdk/release
Oct 1, 2015
3b10c32
Adding 'Other' type support to EnableReregister, Get and Unregister c…
Oct 1, 2015
f79d121
Merge pull request #159 from MabOneSdk/dev1-anudeeb
Oct 1, 2015
82bef5a
Merge pull request #162 from MabOneSdk/dev1
Oct 1, 2015
19db6a3
Merge pull request #996 from jianghaolu/dev
stankovski Oct 1, 2015
48823cd
skip sleep when run undr mock
yugangw-msft Oct 1, 2015
97d2c52
Bumped up all versions and removed (c) character
stankovski Oct 1, 2015
bfe98f0
Merge pull request #1028 from yugangw-msft/fast
yugangw-msft Oct 1, 2015
0595e8f
Merge pull request #1023 from jongeller/dev
stankovski Oct 1, 2015
0605f86
Merge pull request #1025 from jasper-schneider/batchSelectExpand
stankovski Oct 1, 2015
1641ac1
Merge pull request #1027 from MabOneSdk/release
stankovski Oct 1, 2015
3eb1938
Merge pull request #1015 from milosevic81/dev
stankovski Oct 1, 2015
8107b69
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Oct 1, 2015
67c9961
Delete GetAzurePolicyAssignment.cs
vivsriaus Oct 1, 2015
db1bbbe
Delete NewAzurePolicyAssignment.cs
vivsriaus Oct 1, 2015
f41b0b1
Delete PolicyAssignmentCmdletBase.cs
vivsriaus Oct 1, 2015
eec09c7
Delete RemoveAzurePolicyAssignment.cs
vivsriaus Oct 1, 2015
6339a2e
Delete SetAzurePolicyAssignment.cs
vivsriaus Oct 1, 2015
07b857e
Delete PolicyAssignment.cs
vivsriaus Oct 1, 2015
1f965d2
Delete PolicyAssignmentProperties.cs
vivsriaus Oct 1, 2015
5277e22
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Oct 1, 2015
7dd82a3
Rename policy assignment cmdlets
vivsriaus Oct 1, 2015
acb6c53
Merge pull request #1029 from stankovski/dev
Oct 1, 2015
77ee674
Merge pull request #1012 from vivsriaus/LockIssue
ogail Oct 1, 2015
3d40ca4
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Oct 1, 2015
53b897b
Update Resources.sln
vivsriaus Oct 1, 2015
5659b4a
Update EnvironmentSetupHelper.cs
vivsriaus Oct 1, 2015
cff3cc2
Undo changes to Elastic pool sql test
vivsriaus Oct 1, 2015
be7ddfe
Merge branch 'Policy' of https://github.com/vivsriaus/azure-powershel…
vivsriaus Oct 1, 2015
6764c6f
undo changes to sql test file
vivsriaus Oct 1, 2015
70cc576
Fixed Compute and SQL tests
Oct 1, 2015
416d23b
Fixed OperationalInsights tests.
Oct 1, 2015
d0a74fb
Revised Resource tests.
Oct 1, 2015
bd285a0
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Oct 1, 2015
885844e
Merge pull request #1014 from vivsriaus/Policy
ogail Oct 1, 2015
4b69f5b
Added EnableAzureDataCollection and DisableAzureDataCollection cmdlets.
Oct 1, 2015
24b39e7
Fixed SQL test environment.
Oct 1, 2015
1950a42
Fixed comment.
Oct 1, 2015
98c119a
Merge pull request #1032 from hovsepm/movemove
Oct 1, 2015
28e217c
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Oct 1, 2015
57e1fdc
Merge pull request #1030 from hovsepm/dev
Oct 1, 2015
ade9fe3
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Oct 1, 2015
a55f42b
Added comments in the installation script.
Oct 1, 2015
4270571
Merge pull request #1033 from hovsepm/dev
Oct 1, 2015
657c1b8
Merge pull request #1011 from chidmdxx/ShowSkuGetAzureRMResource
stankovski Oct 1, 2015
7d081fc
Fixed *-AzureDataCollection cmdlets name to *-AzureRmDataCollection
Oct 2, 2015
ea26d37
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Oct 2, 2015
211ba0d
Merge pull request #1036 from hovsepm/dev
Oct 2, 2015
0ba6aa8
Updates to template deployment cmdlets
vivsriaus Oct 2, 2015
3305508
Merge pull request #131 from Azure/dev
huangpf Oct 2, 2015
b30b857
Merge pull request #1037 from vivsriaus/DeploymentUpdates
ogail Oct 2, 2015
b074625
Merge pull request #132 from Azure/dev
huangpf Oct 2, 2015
cfe09a1
Merge pull request #133 from AzureRT/dev
huangpf Oct 2, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
* Set-AzureVMSqlServerExtension
* Get-AzureVMSqlServerExtension
* Remove-AzureVMSqlServerExtension
* Azure SQL Database Index Recommendation Cmdlets
* Get-AzureSqlDatabaseIndexRecommendations
* Start-AzureSqlDatabaseExecuteIndexRecommendation
* Stop-AzureSqlDatabaseExecuteIndexRecommendation
* Azure SQL Database and Server Upgrade Hints Cmdlets
* Get-AzureSqlDatabaseUpgradeHint
* Get-AzureSqlServerUpgradeHint

## 2015.08.17 version 0.9.7
* Azure Profile cmdlets
Expand Down
6 changes: 4 additions & 2 deletions setup-powershellget/Setup/ShortcutStartup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ This may take some time...
} else {
cd c:\
$welcomeMessage = @"
For a list of all Azure cmdlets type 'help azure'.
For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.
For a list of all Azure RM cmdlets type 'help azurerm'.

To start using Azure RM login via Login-AzureRmAccount cmdlet.
To switch between subscriptions use Set-AzureRmContext.

To use Azure Service Management cmdlets please execute the following cmdlet:
Install-Module Azure
Expand Down
6 changes: 3 additions & 3 deletions src/Common/Storage/Azure.Storage.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.9.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = '00612bca-fa22-401d-a671-9cc48b010e3b'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - Storage'
Expand All @@ -45,7 +45,7 @@ CLRVersion='4.0'
ProcessorArchitecture = 'None'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.8' })
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.8.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = 'D48CF693-4125-4D2D-8790-1514F44CE325'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '?Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = ''
Expand Down
6 changes: 3 additions & 3 deletions src/ResourceManager/ApiManagement/AzureRM.ApiManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.9.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = 'f875725d-8ce4-423f-a6af-ea880bc63f13'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - Api Management'
Expand All @@ -45,7 +45,7 @@ CLRVersion='4.0'
ProcessorArchitecture = 'None'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.8' })
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.0.1'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = '77A7B3B3-A067-4173-9AC9-8A7248EF3C1C'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '?Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.0.1'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = '77A7B3B3-A067-4173-9AC9-8A7248EF3C1C'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '?Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = ''
Expand Down
6 changes: 3 additions & 3 deletions src/ResourceManager/Automation/AzureRM.Automation.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.9.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = 'bcea1c70-a32b-48c3-a05c-323e1c02f4d3'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - Automation'
Expand All @@ -45,7 +45,7 @@ CLRVersion='4.0'
ProcessorArchitecture = 'None'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.8' })
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
<package id="Moq" version="4.2.1402.2112" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
<package id="xunit.runner.visualstudio" version="2.1.0-beta4-build1109" targetFramework="net45" />
<package id="xunit" version="1.9.2" targetFramework="net45" />
<package id="xunit.extensions" version="1.9.2" targetFramework="net45" />
<package id="xunit.runner.visualstudio" version="2.1.0-beta4-build1109" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.8.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = 'D48CF693-4125-4D2D-8790-1514F44CE325'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '?Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = ''
Expand Down
6 changes: 3 additions & 3 deletions src/ResourceManager/AzureBackup/AzureRM.Backup.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.9.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = '0b1d76f5-a928-4b8f-9c83-df26947568d4'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - AzureBackup'
Expand All @@ -45,7 +45,7 @@ CLRVersion='4.0'
ProcessorArchitecture = 'None'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.8' })
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Management.BackupServicesManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.4-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.5-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Azure.Common.Authentication" version="1.3.1-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.4-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.5-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Management.Resources" version="2.18.7-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Test.Framework" version="1.0.5715.36130-prerelease" targetFramework="net45" />
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.0.5715.36130-prerelease" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ protected override void ProcessRecord()
{
case AzureBackupContainerType.Windows:
case AzureBackupContainerType.SCDPM:
case AzureBackupContainerType.AzureBackupServer:
case AzureBackupContainerType.Other:
AzureBackupClient.EnableMachineContainerReregistration(Container.ResourceGroupName, Container.ResourceName, Container.Id);
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ protected override void ProcessRecord()
{
case AzureBackupContainerType.Windows:
case AzureBackupContainerType.SCDPM:
case AzureBackupContainerType.AzureBackupServer:
case AzureBackupContainerType.Other:
containers.AddRange(GetMachineContainers(Vault.ResourceGroupName, Vault.Name));
break;
case AzureBackupContainerType.AzureVM:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ protected override void ProcessRecord()
{
case AzureBackupContainerType.Windows:
case AzureBackupContainerType.SCDPM:
case AzureBackupContainerType.AzureBackupServer:
case AzureBackupContainerType.Other:
DeleteServer();
break;
case AzureBackupContainerType.AzureVM:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.BackupServicesManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.4-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.5-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,37 @@ internal class ContainerHelpers
{
private static readonly Regex ResourceGroupRegex = new Regex(@"/subscriptions/(?<subscriptionsId>.+)/resourceGroups/(?<resourceGroupName>.+)/providers/(?<providersName>.+)/BackupVault/(?<BackupVaultName>.+)/containers/(?<containersName>.+)", RegexOptions.Compiled);

internal static AzureBackupContainerType GetContainerType(string customerType)
internal static AzureBackupContainerType GetContainerType(string customerTypeString)
{
CustomerType type = (CustomerType)Enum.Parse(typeof(CustomerType), customerType);

AzureBackupContainerType containerType = 0;
CustomerType customerType = CustomerType.Invalid;

switch (type)
if (Enum.TryParse<CustomerType>(customerTypeString, out customerType))
{
case CustomerType.DPM:
containerType = AzureBackupContainerType.SCDPM;
break;
case CustomerType.InMage:
break;
case CustomerType.Invalid:
break;
case CustomerType.ManagedContainer:
break;
case CustomerType.OBS:
containerType = AzureBackupContainerType.Windows;
break;
case CustomerType.SBS:
containerType = AzureBackupContainerType.Windows;
break;
case CustomerType.SqlPaaS:
break;
default:
break;
switch (customerType)
{
case CustomerType.DPM:
containerType = AzureBackupContainerType.SCDPM;
break;
case CustomerType.OBS:
containerType = AzureBackupContainerType.Windows;
break;
case CustomerType.SBS:
containerType = AzureBackupContainerType.Windows;
break;
case CustomerType.DPMVenus:
containerType = AzureBackupContainerType.AzureBackupServer;
break;
case CustomerType.Invalid:
break;
default:
containerType = AzureBackupContainerType.Other;
break;
}
}
else if (!string.IsNullOrEmpty(customerTypeString))
{
containerType = AzureBackupContainerType.Other;
}

return containerType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '© Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public enum AzureBackupContainerType
Windows = 1,
SCDPM,
AzureVM,
AzureBackupServer,
Other,
}

public enum DataSourceType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Azure.Common.Authentication" version="1.3.1-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.4-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.5-preview" targetFramework="net45" />
<package id="Microsoft.Azure.Management.Resources" version="2.18.7-preview" targetFramework="net45" />
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
Expand Down
6 changes: 3 additions & 3 deletions src/ResourceManager/AzureBatch/AzureRM.Batch.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '0.9.8'
ModuleVersion = '0.9.10'

# ID used to uniquely identify this module
GUID = 'a8f00f40-1c1a-49b5-9db3-24076b75c3cf'
Expand All @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - Batch'
Expand All @@ -45,7 +45,7 @@ CLRVersion='4.0'
ProcessorArchitecture = 'None'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.8' })
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
Expand Down
Loading