@@ -38,7 +38,7 @@ if ([string]::IsNullOrEmpty($repositoryLocation))
38
38
if ([string ]::IsNullOrEmpty($scope ))
39
39
{
40
40
Write-Verbose " Default scope to all"
41
- $scope = ' all '
41
+ $scope = ' All '
42
42
}
43
43
44
44
Write-Host " Publishing $scope package(s)"
@@ -53,13 +53,20 @@ if ($repo -ne $null) {
53
53
Register-PSRepository - Name $repoName - SourceLocation $repositoryLocation - PublishLocation $repositoryLocation / package - InstallationPolicy Trusted
54
54
}
55
55
56
- if (($scope -eq ' all ' ) -or ($scope -eq ' servicemanagement ' )) {
56
+ if (($scope -eq ' All ' ) -or ($scope -eq ' ServiceManagement ' )) {
57
57
$modulePath = " $packageFolder \$buildConfig \ServiceManagement\Azure"
58
58
# Publish Azure module
59
59
Write-Host " Publishing Azure module from $modulePath "
60
60
Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
61
61
}
62
62
63
+ if (($scope -eq ' All' ) -or ($scope -eq ' AzureStorage' )) {
64
+ $modulePath = " $packageFolder \$buildConfig \ServiceManagement\Azure\Azure.Storage"
65
+ # Publish AzureStorage module
66
+ Write-Host " Publishing AzureStorage module from $modulePath "
67
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
68
+ }
69
+
63
70
if ($scope -eq ' AzureRM' ) {
64
71
# Publish AzureRM module
65
72
$modulePath = " $PSScriptRoot \AzureRM"
@@ -70,7 +77,7 @@ if ($scope -eq 'AzureRM') {
70
77
71
78
$resourceManagerRootFolder = " $packageFolder \$buildConfig \ResourceManager\AzureResourceManager"
72
79
$resourceManagerModules = Get-ChildItem - Path $resourceManagerRootFolder - Directory
73
- if ($scope -eq ' all ' ) {
80
+ if ($scope -eq ' All ' ) {
74
81
# Publish AzureRM modules
75
82
foreach ($module in $resourceManagerModules ) {
76
83
$modulePath = $module.FullName
0 commit comments