Skip to content

Commit 2e7fdf5

Browse files
committed
Merge pull request #101 from Azure/dev
.
2 parents 586f678 + 5166469 commit 2e7fdf5

26 files changed

+13505
-12909
lines changed

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,30 @@ Param(
1717
[switch]$Install
1818
)
1919

20-
cd c:\
21-
$welcomeMessage = @"
20+
$error.clear()
21+
try {
22+
if ($Install.IsPresent) {
23+
Write-Output @"
24+
25+
Finalizing installation of Azure PowerShell.
26+
Installing Azure Modules from PowerShell Gallery.
27+
This may take some time...
28+
"@
29+
Get-PackageProvider -Name NuGet -ForceBootstrap
30+
Install-Module AzureRM.Installer
31+
Install-AzureRM
32+
} else {
33+
cd c:\
34+
$welcomeMessage = @"
2235
For a list of all Azure cmdlets type 'help azure'.
2336
For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.
2437
"@
25-
Write-Output $welcomeMessage
38+
Write-Output $welcomeMessage
2639

27-
$VerbosePreference = "Continue"
40+
$VerbosePreference = "Continue"
41+
}
42+
}
43+
catch { Write-Output $error }
44+
if ($error) {
45+
Read-Host -Prompt "An error occured during installation. Press any key..."
46+
}

setup-powershellget/azurecmd.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<CustomAction Id="SetCustomActionDataValue" Return="check" Property="UpdatePSShortcut"
103103
Value="ShortcutPath=[AzureSdkMenu]Microsoft Azure PowerShell.lnk;DefaultShortcutPath=[ProgramMenuFolder]System Tools\Windows PowerShell.lnk" />
104104
<CustomAction Id="SetExecutionPolicy" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -Command &quot;Set-ExecutionPolicy RemoteSigned -Force&quot;" Execute="deferred" Impersonate="no" Return="check"/>
105-
<CustomAction Id="RunModuleInstallScript" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -Command &quot;\&quot;[PowerShellFolder]\ShortcutStartup.ps1 -Install\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
105+
<CustomAction Id="RunModuleInstallScript" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -Command &quot;. \&quot;[PowerShellFolder]\ShortcutStartup.ps1\&quot; -Install&quot;" Execute="deferred" Impersonate="no" Return="check"/>
106106

107107
<InstallExecuteSequence>
108108
<Custom Action="SetCustomActionDataValue" After="CreateShortcuts">NOT Installed</Custom>

setup/azurecmdfiles.wxi

Lines changed: 781 additions & 237 deletions
Large diffs are not rendered by default.

src/Common/Storage/Azure.Storage.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ ScriptsToProcess = @()
5555

5656
# Type files (.ps1xml) to be loaded when importing this module
5757
TypesToProcess = @(
58-
'.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml'
58+
'.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml'
5959
)
6060

6161
# Format files (.ps1xml) to be loaded when importing this module
6262
FormatsToProcess = @(
63-
'.\Microsoft.WindowsAzure.Commands.Storage.format.ps1xml'
63+
'.\Microsoft.WindowsAzure.Commands.Storage.format.ps1xml'
6464
)
6565

6666
# Modules to import as nested modules of the module specified in ModuleToProcess
6767
NestedModules = @(
68-
'.\Microsoft.WindowsAzure.Commands.Storage.dll',
68+
'.\Microsoft.WindowsAzure.Commands.Storage.dll'
6969
)
7070

7171
# Functions to export from this module
@@ -79,7 +79,7 @@ VariablesToExport = '*'
7979

8080
# Aliases to export from this module
8181
AliasesToExport = @(
82-
'Get-AzureRMStorageContainerAcl',
82+
'Get-AzureRMStorageContainerAcl',
8383
'Start-CopyAzureStorageBlob',
8484
'Stop-CopyAzureStorageBlob'
8585
)

src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<DebugSymbols>true</DebugSymbols>
2020
<DebugType>full</DebugType>
2121
<Optimize>false</Optimize>
22-
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.AzureBackup\</OutputPath>
22+
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Backup\</OutputPath>
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
@@ -30,7 +30,7 @@
3030
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
3131
</PropertyGroup>
3232
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33-
<OutputPath>..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.AzureBackup\</OutputPath>
33+
<OutputPath>..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.Backup\</OutputPath>
3434
<DefineConstants>TRACE;SIGN</DefineConstants>
3535
<Optimize>true</Optimize>
3636
<DebugType>pdbonly</DebugType>
@@ -192,8 +192,8 @@
192192
<Compile Include="Properties\AssemblyInfo.cs" />
193193
</ItemGroup>
194194
<ItemGroup>
195-
<None Include="..\AzureRM.AzureBackup.psd1">
196-
<Link>AzureRM.AzureBackup.psd1</Link>
195+
<None Include="..\AzureRM.Backup.psd1">
196+
<Link>AzureRM.Backup.psd1</Link>
197197
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
198198
</None>
199199
<None Include="Microsoft.Azure.Commands.AzureBackup.dll-help.psd1" />

src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<DebugSymbols>true</DebugSymbols>
2020
<DebugType>full</DebugType>
2121
<Optimize>false</Optimize>
22-
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.AzureBatch\</OutputPath>
22+
<OutputPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Batch\</OutputPath>
2323
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
@@ -30,7 +30,7 @@
3030
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3131
<DebugType>pdbonly</DebugType>
3232
<Optimize>true</Optimize>
33-
<OutputPath>..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.AzureBatch\</OutputPath>
33+
<OutputPath>..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.Batch\</OutputPath>
3434
<DefineConstants>TRACE;SIGN</DefineConstants>
3535
<ErrorReport>prompt</ErrorReport>
3636
<WarningLevel>4</WarningLevel>

src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ TypesToProcess = @()
5858

5959
# Format files (.ps1xml) to be loaded when importing this module
6060
FormatsToProcess = @(
61-
'.\Microsoft.Azure.Commands.OperationalInsights.format.ps1xml'
61+
'.\Microsoft.Azure.Commands.OperationalInsights.format.ps1xml'
6262
)
6363

6464
# Modules to import as nested modules of the module specified in ModuleToProcess

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
<ItemGroup>
165165
<None Include="..\AzureRM.OperationalInsights.psd1">
166166
<Link>AzureRM.OperationalInsights.psd1</Link>
167+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
167168
</None>
168169
<None Include="Microsoft.Azure.Commands.OperationalInsights.dll-Help.psd1" />
169170
<Content Include="Microsoft.Azure.Commands.OperationalInsights.dll-Help.xml">

src/ResourceManager/Resources/AzureRM.Resources.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ FormatsToProcess = @(
6464
# Modules to import as nested modules of the module specified in ModuleToProcess
6565
NestedModules = @(
6666
'.\Microsoft.Azure.Commands.Resources.dll',
67-
'.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll',
67+
'.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll'
6868
)
6969

7070
# Functions to export from this module

0 commit comments

Comments
 (0)