Skip to content

Commit 1690ad3

Browse files
committed
Merge pull request #124 from AzureRT/vmss
Vmss
2 parents c70d732 + c399f38 commit 1690ad3

23 files changed

+3321
-2686
lines changed

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,25 @@ Param(
1717
[switch]$Install
1818
)
1919

20+
function EnsureRegistryPath
21+
{
22+
$originalpaths = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PSModulePath).PSModulePath
23+
if($originalpaths.Contains("$env:ProgramFiles\WindowsPowerShell\Modules") -eq $false)
24+
{
25+
Write-Output "Fixing PSModulePath"
26+
$newPath = "$originalpaths;$env:ProgramFiles\WindowsPowerShell\Modules"
27+
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PSModulePath –Value $newPath
28+
}
29+
else
30+
{
31+
Write-Output "PSModulePath successfuly validated"
32+
}
33+
}
34+
2035
$error.clear()
2136
try {
2237
if ($Install.IsPresent) {
38+
EnsureRegistryPath
2339
Write-Output @"
2440
2541
Finalizing installation of Azure PowerShell.
@@ -57,4 +73,5 @@ Write-Output "An error occured during installation."
5773
Write-Output $error
5874
Write-Output "Press any key..."
5975
$host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
60-
}
76+
}
77+

setup/azurecmdfiles.wxi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,9 +2535,6 @@
25352535
<Component Id="cmp42FE31D214E88600BC5DE868A244BA20" Guid="*">
25362536
<File Id="filD6668B53C1E9BB018419C62B94B1EDCC" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.Azure.Common.NetFramework.dll" />
25372537
</Component>
2538-
<Component Id="cmpC97A392E1DDFDAA47605D26D01A7C5CE" Guid="*">
2539-
<File Id="filF7C94BA91D0D264080EB79D6C9AB6582" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.Azure.Management.Compute.dll" />
2540-
</Component>
25412538
<Component Id="cmp9BE4A14F2E050EFD14F849753F4D0C80" Guid="*">
25422539
<File Id="filF37AF7FAE1E4FAD4D16EDA8BC0CF45D5" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.Azure.ResourceManager.dll" />
25432540
</Component>
@@ -5164,7 +5161,6 @@
51645161
<ComponentRef Id="cmp7AAE7BA21799D1BAFA96134E30059981" />
51655162
<ComponentRef Id="cmpBCF3C38FB8142F10977444858EFAF20D" />
51665163
<ComponentRef Id="cmp42FE31D214E88600BC5DE868A244BA20" />
5167-
<ComponentRef Id="cmpC97A392E1DDFDAA47605D26D01A7C5CE" />
51685164
<ComponentRef Id="cmp9BE4A14F2E050EFD14F849753F4D0C80" />
51695165
<ComponentRef Id="cmpC4B0F527C50AAE1765CBAD30D27B8A40" />
51705166
<ComponentRef Id="cmp137E88F14FE19BC371D0B55830162E31" />

src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,7 @@
150150
<Compile Include="Autoscale\NewAutoscaleProfileCommandTests.cs" />
151151
<Compile Include="Autoscale\NewAutoscaleRuleCommandTests.cs" />
152152
<Compile Include="Autoscale\RemoveAutoscaleSettingCommandTests.cs" />
153-
<Compile Include="Events\GetAzureCorrelationIdLogCommandTests.cs" />
154-
<Compile Include="Events\GetAzureResourceLogCommandTests.cs" />
155-
<Compile Include="Events\GetAzureResourceProviderLogCommandTests.cs" />
156-
<Compile Include="Events\GetAzureSubscriptionIdLogCommandTests.cs" />
157-
<Compile Include="Events\GetAzureResourceGroupLogCommandTests.cs" />
153+
<Compile Include="Events\GetAzureRmLogCommandTests.cs" />
158154
<Compile Include="Metrics\FormatMetricsAsTableCommandTests.cs" />
159155
<Compile Include="Metrics\GetMetricDefinitionsCommandTests.cs" />
160156
<Compile Include="Metrics\GetMetricsCommandTests.cs" />

src/ResourceManager/Insights/Commands.Insights.Test/Events/GetAzureCorrelationIdLogCommandTests.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Events/GetAzureResourceGroupLogCommandTests.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Events/GetAzureResourceLogCommandTests.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Events/GetAzureResourceProviderLogCommandTests.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)