Skip to content

Commit feaf59b

Browse files
committed
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
2 parents 909acb4 + 6d2af53 commit feaf59b

File tree

1,568 files changed

+111432
-26040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,568 files changed

+111432
-26040
lines changed

AzurePowershell.Test.targets

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<OperationalInsightsTestDebug>.\src\ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\bin\Debug\Microsoft.Azure.Commands.OperationalInsights.Test.dll</OperationalInsightsTestDebug>
2525
<BatchTestDebug>.\src\ResourceManager\AzureBatch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll</BatchTestDebug>
2626
<WebsitesTestDebug>.\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll</WebsitesTestDebug>
27+
<LogicAppTestDebug>.\src\ResourceManager\LogicApp\Commands.LogicApp.Test\bin\Debug\Microsoft.Azure.Commands.LogicApp.Test.dll</LogicAppTestDebug>
2728
<RemoteAppTestDebug>.\src\ServiceManagement\RemoteApp\Commands.RemoteApp.Test\bin\Debug\Microsoft.Azure.Commands.RemoteApp.Tests.dll</RemoteAppTestDebug>
2829
<ServiceManagementTestDebug>.\src\ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Test.dll</ServiceManagementTestDebug>
2930
<SqlDatabaseTestDebug>.\src\ServiceManagement\Sql\Commands.SqlDatabase.Test\bin\Debug\Microsoft.WindowsAzure.Commands.SqlDatabase.Test.dll</SqlDatabaseTestDebug>
@@ -76,13 +77,15 @@
7677
<XUnitTests Include=".\src\ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\bin\Debug\Microsoft.Azure.Commands.OperationalInsights.Test.dll"/>
7778
<XUnitTests Include=".\src\ResourceManager\AzureBatch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll"/>
7879
<XUnitTests Include=".\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll"/>
80+
<XUnitTests Include=".\src\ResourceManager\LogicApp\Commands.LogicApp.Test\bin\Debug\Microsoft.Azure.Commands.LogicApp.Test.dll"/>
7981
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
8082
<XUnitTests Include=".\src\ResourceManager\UsageAggregates\Commands.UsageAggregates.Test\bin\Debug\Microsoft.Azure.Commands.UsageAggregates.Test.dll"/>
8183
<XUnitTests Include=".\src\ResourceManager\TrafficManager\Commands.TrafficManager2.Test\bin\Debug\Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests.dll"/>
8284
<XUnitTests Include=".\src\ResourceManager\ApiManagement\Commands.ApiManagement.Test\bin\Debug\Microsoft.Azure.Commands.ApiManagement.Test.dll"/>
8385
<XUnitTests Include=".\src\ResourceManager\Profile\Commands.Profile.Test\bin\Debug\Microsoft.Azure.Commands.Profile.Test.dll"/>
8486
<XUnitTests Include=".\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll"/>
85-
<XUnitTests Include=".\src\ResourceManager\NotificationHubs\Commands.NotificationHubs.Test\bin\Debug\Microsoft.Azure.Commands.NotificationHubs.Test.dll"/>
87+
<XUnitTests Include=".\src\ResourceManager\NotificationHubs\Commands.NotificationHubs.Test\bin\Debug\Microsoft.Azure.Commands.NotificationHubs.Test.dll"/>
88+
<XUnitTests Include=".\src\Common\Commands.Common.Authentication.Test\bin\Debug\Microsoft.Azure.Commands.Common.Authentication.Test.dll"/>
8689
<XUnitTests Include="@(AsmXUnitTests)"/>
8790
</ItemGroup>
8891
<ItemGroup Condition=" '$(scope)' == 'ServiceManagement' ">
@@ -96,19 +99,37 @@
9699
<Target Name="InvokeXUnit" DependsOnTargets="DeclareXunitTests">
97100
<Message Importance="high" Text="Running XUnit tests" />
98101
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
99-
<Exec
100-
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -parallel none -maxthreads 0 -trait &quot;AcceptanceType=CheckIn&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
101-
Timeout="$(TestTimeout)" ContinueOnError="false" Condition=" @(XUnitTests) != '' "/>
102-
<OnError ExecuteTargets="TimeoutErrorHandler"/>
102+
103+
<xunit
104+
Assemblies="@(XUnitTests)"
105+
AppDomains="true"
106+
ShadowCopy="false"
107+
ParallelizeTestCollections="false"
108+
ParallelizeAssemblies="true"
109+
IncludeTraits="AcceptanceType=CheckIn"
110+
Html="$(TestOutputDirectory)\AzurePowershellTestResults.html"
111+
MaxParallelThreads="10"
112+
DiagnosticMessages="false"
113+
ContinueOnError="false"
114+
Condition=" @(XUnitTests) != '' "/>
103115
</Target>
104116

105117
<Target Name="InvokeXUnitAll" DependsOnTargets="DeclareXunitTests">
106118
<Message Importance="high" Text="Running XUnit tests" />
107119
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
108-
<Exec
109-
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -notrait &quot;RunType=LiveOnly&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
110-
Timeout="$(TestTimeout)" ContinueOnError="false"/>
111-
<OnError ExecuteTargets="TimeoutErrorHandler"/>
120+
121+
<xunit
122+
Assemblies="@(XUnitTests)"
123+
AppDomains="true"
124+
ShadowCopy="false"
125+
ParallelizeTestCollections="false"
126+
ParallelizeAssemblies="true"
127+
ExcludeTraits="RunType=LiveOnly"
128+
Html="$(TestOutputDirectory)\AzurePowershellAllTestResults.html"
129+
MaxParallelThreads="10"
130+
DiagnosticMessages="false"
131+
ContinueOnError="false"
132+
Condition=" @(XUnitTests) != '' "/>
112133
</Target>
113134

114135
<Target Name="TimeoutErrorHandler">
@@ -163,6 +184,12 @@
163184
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
164185
</Target>
165186

187+
<Target Name="TestLogicApp">
188+
<Xunit.Runner.MSBuild.xunit Assemblies="$(LogicAppTestDebug)" Html="$(TestOutputDirectory)\LogicAppTestDebug.xunit.dll.html" Verbose="false"
189+
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
190+
</Target>
191+
192+
166193
<Target Name="TestDataFactoryManager">
167194
<Xunit.Runner.MSBuild.xunit Assemblies="$(DataFactoryManagerTestDebug)" Html="$(TestOutputDirectory)\DataFactoryManagerTestDebug.xunit.dll.html" Verbose="false"
168195
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
@@ -450,7 +477,7 @@
450477

451478
<Target Name="LiveTests">
452479
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
453-
<Exec Command="packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe @(LiveTestDlls) /trait &quot;AcceptanceType=LiveBVT&quot; /html &quot;$(TestOutputDirectory)\Live.%(Filename).html&quot;" />
480+
<Exec Command="packages\xunit.runner.console.2.1.0\tools\xunit.console.x86.exe @(LiveTestDlls) /trait &quot;AcceptanceType=LiveBVT&quot; /html &quot;$(TestOutputDirectory)\Live.%(Filename).html&quot;" />
454481
</Target>
455482

456483

ChangeLog.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
##2016.03.08 version 1.3.0
2+
* Azure LogicApp: New cmdlets for managing LogicApps
3+
* Get-AzureLogicAppAccessKey
4+
* Get-AzureLogicApp
5+
* Get-AzureLogicAppRunAction
6+
* Get-AzureLogicAppRunHistory
7+
* Get-AzureLogicAppTrigger
8+
* Get-AzureLogicAppTriggerHistory
9+
* New-AzureLogicApp
10+
* Remove-AzureLogicApp
11+
* Start-AzureLogicApp
12+
* Set-AzureLogicAppAccessKey
13+
* Set-AzureLogicApp
14+
* Stop-AzureLogicAppRun
15+
16+
## 2016.02.04 version 1.2.1
17+
* Fix installer issue - remove PSGallery modules on install
18+
19+
## 2016.02.03 version 1.2.0
20+
* Azure RemoteApp:
21+
* Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters.
22+
* Azure Stack Admin:
23+
* New module for the management of azure stack administrative resources such as plan, offer, subscription, resource provider and
24+
gallery items.
25+
* Azure Stack Storage Admin:
26+
* New module for the management of azure stack storage administrative resources such as configuration, infrastructure and health.
27+
* Azure Operational Insights new cmdlets:
28+
* Get-AzureRmOperationalInsightsSavedSearch
29+
* Get-AzureRmOperationalInsightsSavedSeearchResults
30+
* Get-AzureRmOperationalInsightsSavedSearches
31+
* Get-AzureRmOperationalInsightsSchema
32+
* Get-AzureRmOperationalInsightsSearchResult
33+
* Get-AzureRmOperationalInsightsSearchResultUpdate
34+
* Remove-AzureRmOperationalInsightsSavedSearch
35+
* Remove-AzureRmOperationalInsightsSavedSearch
36+
* Set-AzureRmOperationalInsightsSavedSearch
37+
* Add-AzureRmAccount fixed issue with wrong credential message
38+
* Get-AzureRmSubscription cmdlet now returns paginated results
39+
* Update-AzureRM now only updates when need unless -Force is used
40+
* Added telemetry to ARM and ASM cmdlets
41+
142
## 2016.01.12 version 1.1.0
243
* Azure SQL Database: Threat Detection policies:
344
* Using new Threat Detection Types

build.proj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<CmdletSolutionsToBuild Include=".\src\ServiceManagement\ServiceManagement.sln"
5454
Condition=" '$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage' "/>
5555
<SetupSln Include=".\setup\azurepowershell.sln" />
56+
<StaticAnalysis Include=".\tools\StaticAnalysis\StaticAnalysis.sln" />
5657
</ItemGroup>
5758

5859
<!--
@@ -69,7 +70,7 @@
6970
<Import Condition=" $(OnPremiseBuild) " Project="$(CIToolsPath)\Microsoft.WindowsAzure.Build.OnPremise.msbuild" />
7071

7172
<UsingTask
72-
AssemblyFile="$(MSBuildProjectDirectory)\src\packages\xunit.MSBuild.2.0.0.0\tools\xunit.runner.msbuild.dll"
73+
AssemblyFile="$(MSBuildProjectDirectory)\packages\xunit.runner.msbuild.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll"
7374
TaskName="Xunit.Runner.MSBuild.xunit" />
7475

7576
<!-- Clean the build in all configurations -->
@@ -161,6 +162,14 @@
161162
Properties="Configuration=$(Configuration);Platform=Any CPU"
162163
ContinueOnError="false"
163164
Condition=" '$(Scope)' == 'all' "/>
165+
166+
<MSBuild
167+
Projects="@(StaticAnalysis)"
168+
Targets="Build"
169+
Properties="Configuration=Debug;Platform=Any CPU"
170+
ContinueOnError="false" />
171+
172+
<CallTarget Targets="DependencyAnalysis" />
164173

165174
<CallTarget Targets="CodeSignInstaller"
166175
Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == 'all'" />
@@ -280,6 +289,12 @@
280289
<Copy SourceFiles="@(InstallersToSign)" DestinationFolder="signed" Condition="$(DelaySign)" />
281290
</Target>
282291

292+
<!-- Run Dependecy Analyzer -->
293+
<Target Name="DependencyAnalysis">
294+
<Message Importance="high" Text="Running Dependency Analysis..." />
295+
<Exec Command="$(MSBuildProjectDirectory)\src\Package\StaticAnalysis.exe $(MSBuildProjectDirectory)\src\Package\$(Configuration) $(MSBuildProjectDirectory)\src\Package"/>
296+
</Target>
297+
283298
<!-- Publish all packages -->
284299
<Target Name="Publish">
285300
<Error Condition=" '$(NuGetKey)' == '' " Text="You must provide the NuGetKey parameter to the build: /p:NuGetKey=YOUR_PUBLISHING_KEY" />

packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="xunit.runner.console" version="2.0.0" />
4-
<package id="xunit.runners" version="1.9.2" />
3+
<package id="xunit.runner.console" version="2.1.0" />
4+
<package id="xunit.runner.msbuild" version="2.1.0" />
55
</packages>

setup/azurecmd.wxs

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
33

4-
<?define productName="Microsoft Azure PowerShell - January 2016" ?>
4+
<?define productName="Microsoft Azure PowerShell - February 2016" ?>
55
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

8-
<?define version="1.1.0" ?>
9-
<?define versionedStartMenuFolder="Microsoft Azure" ?>
10-
<?define staleStartMenuFolder="Windows Azure" ?>
8+
<?define version="1.2.1" ?>
119

1210
<Product Id="*"
1311
Name="$(var.productName)"
@@ -63,10 +61,6 @@
6361
</Directory>
6462
</Directory>
6563
</Directory>
66-
<Directory Id="ProgramMenuFolder">
67-
<Directory Id="AzureSdkMenu" Name="$(var.versionedStartMenuFolder)"/>
68-
<Directory Id="StaleAzureSdkMenu" Name="$(var.staleStartMenuFolder)"/>
69-
</Directory>
7064
</Directory>
7165

7266
<Property Id="POWERSHELLPATH">
@@ -97,39 +91,20 @@
9791
</Component>
9892
</DirectoryRef>
9993

100-
<DirectoryRef Id="AzureSdkMenu">
101-
<Component Id="AzureSdkShortcut" Guid="A9B58A22-F746-451D-8840-F887D8014C3C">
102-
<Shortcut Id="AzureSdkStartMenuShortcut"
103-
Name="Microsoft Azure PowerShell"
104-
Description="Microsoft PowerShell cmdlets"
105-
Target="[POWERSHELLPATH]\powershell.exe"
106-
Arguments="-NoExit -ExecutionPolicy Bypass -File &quot;[PowerShellFolder]ServiceManagement\Azure\Services\ShortcutStartup.ps1&quot;"/>
107-
<RemoveFolder Id="AzureSdkMenu" On="uninstall"/>
108-
<RemoveFile Id="RemoveStaleFiles" Directory="StaleAzureSdkMenu" Name="Windows Azure PowerShell.lnk" On="both"/>
109-
<RegistryValue Root="HKCU" Key="SOFTWARE\Microsoft\Microsoft SDKs\WindowsAzure\$(var.version)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
110-
</Component>
111-
</DirectoryRef>
112-
11394
<Feature Id="azurecmd" Title="Microsoft Azure PowerShell" Level="1" Description="Windows PowerShell commandlets">
11495
<ComponentGroupRef Id="azurecmdfiles" />
11596
<ComponentRef Id="PSModulePath.System" />
116-
<ComponentRef Id="AzureSdkShortcut" />
11797
<ComponentRef Id="AzureSdkExecutionPolicyScript" />
11898
<ComponentRef Id="AzureSdkRemoveModulesScript" />
11999
</Feature>
120100

121101
<Binary Id="CustomActions" SourceFile="$(var.caSourceDir)\Microsoft.WindowsAzure.Setup.CA.dll"/>
122-
<CustomAction Id="UpdatePSShortcut" BinaryKey="CustomActions" DllEntry="UpdatePSShortcut" Execute ="deferred" Impersonate="no"/>
123-
<CustomAction Id="SetCustomActionDataValue" Return="check" Property="UpdatePSShortcut"
124-
Value="ShortcutPath=[AzureSdkMenu]Microsoft Azure PowerShell.lnk;DefaultShortcutPath=[ProgramMenuFolder]System Tools\Windows PowerShell.lnk" />
125102
<CustomAction Id="SetExecutionPolicy" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -WindowStyle Hidden -NonInteractive -ExecutionPolicy Bypass -Command &quot;. \&quot;[PowerShellFolder]SetExecutionPolicy.ps1\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
126103
<CustomAction Id="RemoveGalleryModules" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -WindowStyle Hidden -NonInteractive -ExecutionPolicy Bypass -Command &quot;. \&quot;[PowerShellFolder]RemoveGalleryModules.ps1\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
127104

128105
<InstallExecuteSequence>
129-
<Custom Action="SetCustomActionDataValue" After="CreateShortcuts">NOT Installed</Custom>
130-
<Custom Action="RemoveGalleryModules" After="SetCustomActionDataValue">NOT Installed</Custom>
131-
<Custom Action="UpdatePSShortcut" After="RemoveGalleryModules">NOT Installed</Custom>
132-
<Custom Action="SetExecutionPolicy" After="UpdatePSShortcut">NOT Installed</Custom>
106+
<Custom Action="RemoveGalleryModules" After="CreateShortcuts">NOT Installed</Custom>
107+
<Custom Action="SetExecutionPolicy" After="RemoveGalleryModules">NOT Installed</Custom>
133108
</InstallExecuteSequence>
134109

135110
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\media\License.rtf" />

0 commit comments

Comments
 (0)