Skip to content

Commit c1194e9

Browse files
author
Shefali
committed
merge
2 parents be34ca2 + 6d2af53 commit c1194e9

File tree

3,098 files changed

+598071
-323230
lines changed

Some content is hidden

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

3,098 files changed

+598071
-323230
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: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,90 @@
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+
42+
## 2016.01.12 version 1.1.0
43+
* Azure SQL Database: Threat Detection policies:
44+
* Using new Threat Detection Types
45+
* Azure Redis Cache: new cmdlets for enabling and disabling diagnostics
46+
* Set-AzureRmRedisCacheDiagnostics
47+
* Remove-AzureRmRedisCacheDiagnostics
48+
* Azure Websites: New cmdlets for managing SSL binding
49+
* Get-AzureRmWebAppCertificate
50+
* New-AzureRmWebAppSSLBinding
51+
* Get-AzureRmWebAppSSLBinding
52+
* Remove-AzureRmWebAppSSLBinding
53+
* Added AseName and AseResourceGroupName parameters in New-AzureRmWebApp and New-AzureRmAppServicePlan cmdlet
54+
* Added support for cloning all deployment slots associated with source website
55+
* Azure Stream Analytics: Added new cmdlet support for Functions.
56+
* New-AzureRmStreamAnalyticsFunction
57+
* Get-AzureRmStreamAnalyticsFunction
58+
* Test-AzureRmStreamAnalyticsFunction
59+
* Get-AzureRmStreamAnalyticsDefaultFunctionDefinition
60+
* Remove-AzureRmStreamAnalyticsFunction
61+
* Azure Batch
62+
* New-AzureBatchTask now accepts a MultiInstanceSettings parameter
63+
* Get-AzureBatchSubtask cmdlet added
64+
* Enable-AzureBatchComputeNodeScheduling / Disable-AzureBatchComputeNodeScheduling cmdlets added
65+
* Enable-AzureBatchAutoScale and New-AzureBatchPool now accept an AutoScaleEvaluationInterval parameter.
66+
67+
## 2015.12.14 version 1.0.2
68+
* Azure Compute (ARM):
69+
* Enable BGInfo extension by default
70+
* Fix the issue when an OS disk is in a different resource group: Now New-AzureRmVM does not create a new storage account for boot diagnostics.
71+
* Add Set-AzureRmBginfoExtension cmdlet
72+
* Make WinRMCertificateUrl parameter mandatory when Set-AzureRmVMOperatingSystem cmdlet is performed with WinRMHttps switch
73+
* Azure Compute (Service Management):
74+
* Fix the issue when adding a new VM without a data disk
75+
* Add ExtensionId parameter for all extension cmdlets
76+
* Expose RemoteAccessCertificateThumbprint property for Get-AzureVM cmdlet
177
* Azure SQL Database: new cmdlets for managing database threat detection policies:
278
* Get-AzureRmSqlDatabaseThreatDetectionPolicy
379
* Set-AzureRmSqlDatabaseThreatDetectionPolicy
480
* Remove-AzureRmSqlDatabaseThreatDetectionPolicy
5-
81+
* Azure RemoteApp: New cmdlets for managing stale machine accounts in AD:
82+
* Get-AzureRemoteAppVmStaleAdObject
83+
* Clear-AzureRemoteAppVmStaleAdObject
84+
* ARM Storage:
85+
* Fix alias missing issue
86+
87+
688
## 2015.11.09 version 1.0.1
789
* Azure Compute
890
* Added cmdlets for managing VM DiskEncryption extension

build.proj

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@
4545
<Scope Condition=" $(Scope) == '' " >all</Scope>
4646
</PropertyGroup>
4747
<ItemGroup>
48-
<CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln" Condition=" '$(Scope)' == 'all' "/>
48+
<CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln"
49+
Exclude=".\src\ResourceManager\Intune\*.sln"
50+
Condition=" '$(Scope)' == 'all' "/>
4951
<CmdletSolutionsToBuild Include=".\src\ResourceManager\$(Scope)\*.sln"
5052
Condition=" '$(Scope)' != 'all' and '$(Scope)' != 'ServiceManagement' and '$(Scope)' != 'AzureStorage' "/>
5153
<CmdletSolutionsToBuild Include=".\src\ServiceManagement\ServiceManagement.sln"
5254
Condition=" '$(Scope)' == 'ServiceManagement' or '$(Scope)' == 'AzureStorage' "/>
5355
<SetupSln Include=".\setup\azurepowershell.sln" />
54-
<SetupPowershellGetSln Include=".\setup-powershellget\powershellget.sln" />
56+
<StaticAnalysis Include=".\tools\StaticAnalysis\StaticAnalysis.sln" />
5557
</ItemGroup>
5658

5759
<!--
@@ -68,7 +70,7 @@
6870
<Import Condition=" $(OnPremiseBuild) " Project="$(CIToolsPath)\Microsoft.WindowsAzure.Build.OnPremise.msbuild" />
6971

7072
<UsingTask
71-
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"
7274
TaskName="Xunit.Runner.MSBuild.xunit" />
7375

7476
<!-- Clean the build in all configurations -->
@@ -80,13 +82,6 @@
8082
Properties="Configuration=$(Configuration);Platform=Any CPU"
8183
ContinueOnError="false" />
8284

83-
<MSBuild
84-
Projects="@(SetupPowershellGetSln)"
85-
Targets="Clean"
86-
Properties="Configuration=$(Configuration);Platform=Any CPU"
87-
ContinueOnError="false"
88-
Condition=" '$(Scope)' == 'all' "/>
89-
9085
<!-- Delete the publish files -->
9186
<Message Importance="high" Text="Cleaning publish files..." ContinueOnError="false" />
9287
<ItemGroup>
@@ -161,20 +156,20 @@
161156

162157
<CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />
163158

164-
<Message Importance="high" Text="Building Setup..." />
165159
<MSBuild
166-
Projects="@(SetupPowershellGetSln)"
160+
Projects="@(SetupSln)"
167161
Targets="Build"
168162
Properties="Configuration=$(Configuration);Platform=Any CPU"
169163
ContinueOnError="false"
170164
Condition=" '$(Scope)' == 'all' "/>
171-
165+
172166
<MSBuild
173-
Projects="@(SetupSln)"
167+
Projects="@(StaticAnalysis)"
174168
Targets="Build"
175-
Properties="Configuration=$(Configuration);Platform=Any CPU"
176-
ContinueOnError="false"
177-
Condition=" '$(Scope)' == 'all' "/>
169+
Properties="Configuration=Debug;Platform=Any CPU"
170+
ContinueOnError="false" />
171+
172+
<CallTarget Targets="DependencyAnalysis" />
178173

179174
<CallTarget Targets="CodeSignInstaller"
180175
Condition=" '$(CodeSign)' == 'true' and '$(Scope)' == 'all'" />
@@ -203,8 +198,6 @@
203198
</GetFrameworkSdkPath>
204199

205200
<!-- Copying shortcut to be signed -->
206-
<Copy SourceFiles="$(LibraryRoot)setup-powershellget\Setup\ShortcutStartup.ps1"
207-
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" />
208201
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1"
209202
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" />
210203
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
@@ -235,7 +228,7 @@
235228
UnsignedFiles="@(DelaySignedAssembliesToSign)"
236229
DestinationPath="$(LibrarySourceFolder)\Package\$(Configuration)"
237230
BasePath="$(LibrarySourceFolder)\Package\$(Configuration)"
238-
Certificates="72, 10006"
231+
Certificates="72, 401"
239232
SigningLogPath="$(LibraryRoot)\signing.log"
240233
ToolsPath="$(CIToolsPath)"
241234
Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/>
@@ -246,7 +239,7 @@
246239
UnsignedFiles="@(ScriptsToSign)"
247240
DestinationPath="$(LibrarySourceFolder)\Package\$(Configuration)"
248241
BasePath="$(LibrarySourceFolder)\Package\$(Configuration)"
249-
Certificates="10006"
242+
Certificates="402"
250243
SigningLogPath="$(LibraryRoot)\signing-scripts.log"
251244
ToolsPath="$(CIToolsPath)"
252245
Condition="!$(DelaySign) and '@(ScriptsToSign)' != ''"/>
@@ -260,8 +253,6 @@
260253
Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/>
261254

262255
<!-- Copying signed shortcut back -->
263-
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\ShortcutStartup.ps1"
264-
DestinationFolder="$(LibraryRoot)setup-powershellget\Setup" />
265256
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\AzureRM.psd1"
266257
DestinationFolder="$(LibraryRoot)tools\AzureRM" />
267258
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\AzureRM.psm1"
@@ -290,14 +281,20 @@
290281
UnsignedFiles="@(InstallersToSign)"
291282
DestinationPath="$(LibraryRoot)\signed"
292283
SigningLogPath="$(LibraryRoot)\msi-signing.log"
293-
Certificates="10006"
284+
Certificates="402"
294285
ToolsPath="$(CIToolsPath)"
295286
Condition="!$(DelaySign) and '@(InstallersToSign)' != ''"/>
296287

297288
<!--If we are testing locally then we copy the binaries and do not submit to the code sign server-->
298289
<Copy SourceFiles="@(InstallersToSign)" DestinationFolder="signed" Condition="$(DelaySign)" />
299290
</Target>
300291

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+
301298
<!-- Publish all packages -->
302299
<Target Name="Publish">
303300
<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-powershellget/Setup/CustomAction.config

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

0 commit comments

Comments
 (0)