Skip to content

Commit 5ab7c15

Browse files
author
Hao Chen
committed
Merge pull request Azure#1903 from Azure/release-1.2.2
Release 1.2.2 merge from release-1.2.2 to master
2 parents bdf0cee + 0b0e3df commit 5ab7c15

File tree

1,468 files changed

+197000
-61270
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,468 files changed

+197000
-61270
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

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Contribute Code or Provide Feedback
22

3-
If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://windowsazure.github.com/guidelines.html).
3+
If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).
44

55
If you encounter any bugs with Microsoft Azure PowerShell please file an issue in the [Issues](https://github.com/Azure/azure-powershell/issues) section of the project.

ChangeLog.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
##2016.03.03 version 1.2.2
2+
* Azure Compute (ARM):
3+
* Add -LicenseType parameter to New-AzureRmVM for bring your own license (BYOL)
4+
* Add -SecureExecution parameter to Set-AzureRmVMCustomScriptExtension
5+
* Add -DisableAutoUpgradeMinorVersion and -ForceRerun parameters to Set-AzureRmVMExtension
6+
* Add Set-AzureRmVMPlan cmdlet
7+
* Add -Redeploy parameter to Set-AzureRmVM
8+
* Add AutoUpgradeMinorVersion and ForceUpdateTag parameters for Get-AzureRmVMExtension
9+
* Update positions of parameters for New-AzureRmVM
10+
* Azure Compute (Service Management):
11+
* Add Set-AzureBootDiagnostics cmdlets
12+
* Enable boot diagnostics by default for New-AzureVM and New-AzureQuickVM
13+
* Azure LogicApp: New cmdlets for managing LogicApps
14+
* Get-AzureLogicAppAccessKey
15+
* Get-AzureLogicApp
16+
* Get-AzureLogicAppRunAction
17+
* Get-AzureLogicAppRunHistory
18+
* Get-AzureLogicAppTrigger
19+
* Get-AzureLogicAppTriggerHistory
20+
* New-AzureLogicApp
21+
* Remove-AzureLogicApp
22+
* Start-AzureLogicApp
23+
* Set-AzureLogicAppAccessKey
24+
* Set-AzureLogicApp
25+
* Stop-AzureLogicAppRun
26+
* Azure Storage
27+
* Added cmdlet to generate SAS token against storage account
28+
- New-AzureStorageAccountSASToken
29+
* Added IPAddressOrRange/Protocol support in cmdlets to generate SAS token against blob, container, file, share, table, queue
30+
- New-AzureStorageBlobSASToken
31+
- New-AzureStorageContainerSASToken
32+
- New-AzureStorageFileSASToken
33+
- New-AzureStorageShareSASToken
34+
- New-AzureStorageQueueSASToken
35+
- New-AzureStorageTableSASToken
36+
* Azure SQL DB Backup/restore
37+
* Get-AzureRmSqlDatabaseGeoBackup
38+
* Get-AzureRmSqlDeletedDatabaseBackup
39+
* Restore-AzureRmSqlDatabase
40+
* This cmdlet accepts as pipelined input the result of one of the first two cmdlets (or Get-AzureRmSqlDatabase if restoring a live DB to a point-in-time)
41+
142
## 2016.02.04 version 1.2.1
243
* Fix installer issue - remove PSGallery modules on install
344

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +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 - February 2016" ?>
4+
<?define productName="Microsoft Azure PowerShell - March 2016" ?>
55
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

8-
<?define version="1.2.1" ?>
8+
<?define version="1.2.2" ?>
99

1010
<Product Id="*"
1111
Name="$(var.productName)"

0 commit comments

Comments
 (0)