Skip to content

Commit 2734a4d

Browse files
authored
Merge branch 'preview' into NetCoreVersionUpdate
2 parents 40540bd + fc10098 commit 2734a4d

File tree

3,777 files changed

+1100682
-4047851
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,777 files changed

+1100682
-4047851
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,6 @@ Package
229229
.idea
230230
/src/ResourceManager/RecoveryServices.Backup/**/bin
231231
launchSettings.json
232+
/src/StackAdmin/AzureRM/AzureRM.psm1
233+
/src/StackAdmin/AzureStack/AzureStack.psm1
234+
/tools/AzureRM.Netcore/AzureRM.Netcore.psm1

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: csharp
33
mono: none
4-
dotnet: 2.1.2
4+
dotnet: 2.1.200
55
dist: trusty
66

77
env:
@@ -19,9 +19,11 @@ before_install:
1919
- sudo apt-get install -y powershell
2020
- sudo pwsh -NonInteractive -NoLogo -NoProfile -Command "Install-Module platyPS -Force -Confirm:\$false -Scope CurrentUser"
2121

22+
# https://github.com/travis-ci/travis-ci/issues/1066#issuecomment-383489298
2223
script:
23-
- dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG
24-
- dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter="AcceptanceType=CheckIn" --configuration $CONFIG
24+
- sudo dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG || travis_terminate 1
25+
- sudo pwsh -NonInteractive -NoLogo -NoProfile -File tools/TestModuleLoading.ps1 || travis_terminate 1
26+
- sudo dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter "AcceptanceType=CheckIn&RunType!=DesktopOnly" --configuration $CONFIG
2527

2628
after_success:
2729
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then

Azure.PowerShell.Netcore.sln

Lines changed: 87 additions & 73 deletions
Large diffs are not rendered by default.

AzurePowershell.Test.targets

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ScenarioTestDebug>.\src\ServiceManagement\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll</ScenarioTestDebug>
77
<CommonTestDebug>.\src\ServiceManagement\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll</CommonTestDebug>
88
<BackupTestDebug>.\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll</BackupTestDebug>
9-
<RecoveryServicesBackupTestDebug>.\src\ResourceManager\AzureBackup\Commands.RecoveryServices.Backup.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll</RecoveryServicesBackupTestDebug>
9+
<RecoveryServicesBackupTestDebug>.\src\ResourceManager\RecoveryServices\Commands.RecoveryServices.Backup.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll</RecoveryServicesBackupTestDebug>
1010
<SqlTestDebug>.\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll</SqlTestDebug>
1111
<ComputeDebug>.\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.dll</ComputeDebug>
1212
<ComputeTestDebug>.\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll</ComputeTestDebug>
@@ -54,22 +54,13 @@
5454
Command="MSTest.exe /testcontainer:$(_testAssembly) /testsettings:$(_testSettings) /category:$(_testFilter) /resultsfile:$(_testResult)"
5555
ContinueOnError="false" />
5656
</Target>
57-
<Target Name="DeclareXunitTests">
58-
<!--Get list of tests to be run based on files changed from a specified PullRequestNumber. Mapping between paths and test DLLs is used to produce the list.-->
59-
<SmartTestingTask RepositoryOwner="Azure" RepositoryName="azure-powershell" PullRequestNumber="$(PullRequestNumber)" MapFilePath=".\TestMappings.json">
60-
<Output TaskParameter ="TestAssemblies" ItemName="XUnitTests"/>
61-
</SmartTestingTask>
62-
<Message Text="Using these test assemblies:"/>
63-
<Message Text="%(XUnitTests.Identity)"/>
64-
<Message Text="Total: @(XunitTests->Count())"/>
65-
</Target>
6657

67-
<Target Name="InvokeXUnit" DependsOnTargets="DeclareXunitTests">
58+
<Target Name="InvokeXUnit">
6859
<Message Importance="high" Text="Running XUnit tests" />
6960
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
7061

71-
<xunit
72-
Assemblies="@(XUnitTests)"
62+
<xunit
63+
Assemblies="@(XUnitTests)"
7364
AppDomains="true"
7465
ShadowCopy="false"
7566
ParallelizeTestCollections="false"
@@ -78,16 +69,16 @@
7869
Html="$(TestOutputDirectory)\AzurePowershellTestResults.html"
7970
MaxParallelThreads="10"
8071
DiagnosticMessages="false"
81-
ContinueOnError="false"
72+
ContinueOnError="false"
8273
Condition=" @(XUnitTests) != '' "/>
8374
</Target>
8475

85-
<Target Name="InvokeXUnitAll" DependsOnTargets="DeclareXunitTests">
76+
<Target Name="InvokeXUnitAll">
8677
<Message Importance="high" Text="Running XUnit tests" />
8778
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
8879

89-
<xunit
90-
Assemblies="@(XUnitTests)"
80+
<xunit
81+
Assemblies="@(XUnitTests)"
9182
AppDomains="true"
9283
ShadowCopy="false"
9384
ParallelizeTestCollections="false"
@@ -96,7 +87,7 @@
9687
Html="$(TestOutputDirectory)\AzurePowershellAllTestResults.html"
9788
MaxParallelThreads="10"
9889
DiagnosticMessages="false"
99-
ContinueOnError="false"
90+
ContinueOnError="false"
10091
Condition=" @(XUnitTests) != '' "/>
10192
</Target>
10293

@@ -107,7 +98,7 @@
10798
<Target Name="BeforeRunTests">
10899
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
109100
</Target>
110-
101+
111102
<Target Name="TestManagement">
112103
<Xunit.Runner.MSBuild.xunit Assemblies="$(ManagementTestDebug)" Html="$(TestOutputDirectory)\ManagementDebug.xunit.dll.html" Verbose="false"
113104
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
@@ -258,15 +249,15 @@
258249
<Message Importance="high" Text="Running Sql tests" />
259250
<Xunit.Runner.MSBuild.xunit Assemblies="$(SqlTestDebug)" Html="$(TestOutputDirectory)\SqlTests.xunit.dll.html" Verbose="false"
260251
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
261-
</Target>
252+
</Target>
262253

263254
<!-- Run the KeyVault tests -->
264255
<Target Name="KeyVaultTests">
265256
<Message Importance="high" Text="Running KeyVault tests" />
266257
<Xunit.Runner.MSBuild.xunit Assemblies="$(KeyVaultTestDebug)" Html="$(TestOutputDirectory)\KeyVaultTests.xunit.dll.html" Verbose="true"
267258
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
268259
</Target>
269-
260+
270261
<!-- Run the ServiceFabric tests -->
271262
<Target Name="ServiceFabricTests">
272263
<Message Importance="high" Text="Running ServiceFabric tests" />
@@ -300,7 +291,7 @@
300291
<Message Importance="high" Text="Running UsageAggregates tests" />
301292
<Xunit.Runner.MSBuild.xunit Assemblies="$(UsageAggregationTestDebug)" Html="$(TestOutputDirectory)\UsageAggregationTests.xunit.dll.html" Verbose="true"
302293
IncludeTraits="$(XUnitIncludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false"/>
303-
</Target>
294+
</Target>
304295

305296
<!-- Run the scenario tests with Mocks -->
306297
<Target Name="MockedScenarioTests">
@@ -462,10 +453,10 @@
462453
</Target>
463454

464455
<ItemGroup>
465-
<LiveTestDlls Include="$(ResourceManagerTestDebug)" />
456+
<LiveTestDlls Include="$(ResourceManagerTestDebug)" />
466457
</ItemGroup>
467458

468-
<Target Name="LiveTests">
459+
<Target Name="LiveTests">
469460
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
470461
<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;" />
471462
</Target>

ChangeLog.md

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,113 @@
1-
## 6.0.0 - May 2018
1+
## 6.2.0 - June 2018
2+
#### AzureRM.Profile
3+
* Fix issue where version 10.0.3 of Newtonsoft.Json wasn't being loaded on module import
4+
5+
#### AzureRM.Compute
6+
* VMSS VM Update feature
7+
- Added 'Update-AzureRmVmssVM' and 'New-AzureRmVMDataDisk' cmdlets
8+
- Add VirtualMachineScaleSetVM parameter to 'Add-AzureRmVMDataDisk' cmdlet to support adding a data disk to Vmss VM.
9+
10+
#### AzureRM.DataFactoryV2
11+
* Updated the ADF .Net SDK version to 0.8.0-preview containing following changes:
12+
- Added Configure factory repository operation
13+
- Updated QuickBooks LinkedService to expose consumerKey and consumerSecret properties
14+
- Updated Several model types from SecretBase to Object
15+
- Added Blob Events trigger
16+
17+
### AzureRM.KeyVault
18+
* Update documentation with example output
19+
20+
### AzureRM.Network
21+
* Enable Traffic Analytics parameters on Network Watcher cmdlets
22+
23+
#### AzureRM.Resources
24+
* Fix issue with 'Properties' property of 'PSResource' object(s) returned from 'Get-AzureRmResource'
25+
26+
#### AzureRM.Scheduler
27+
* Fix issue with update ServiceBusQueueJob not setting new Auth values
28+
29+
### AzureRM.Sql
30+
* Updated the following cmdlets with optional LicenseType parameter
31+
- New-AzureRmSqlDatabase; Set-AzureRmSqlDatabase
32+
- New-AzureRmSqlElasticPool; Set-AzureRmSqlElasticPool
33+
- New-AzureRmSqlDatabaseCopy
34+
- New-AzureRmSqlDatabaseSecondary
35+
- Restore-AzureRmSqlDatabase
36+
37+
#### AzureRM.Websites
38+
* 'New-AzureRMWebApp' is updated to use common algorithms from the Strategy library.
39+
40+
## 6.1.1 - May 2018
41+
#### AzureRM.Resources
42+
* Revert change to `New-AzureRmADServicePrincipal` that gave service principals `Contributor` permissions over the current subscription if no values were provided for the `Role` or `Scope` parameters
43+
- If no values are provided for `Role` or `Scope`, the service principal is created with no permissions
44+
- If a `Role` is provided, but no `Scope`, the service principal is created with the specified `Role` permissions over the current subscription
45+
- If a `Scope` is provided, but no `Role`, the service principal is created with `Contributor` permissions over the specified `Scope`
46+
- If both `Role` and `Scope` are provided, the service principal is created with the specified `Role` permissions over the specified `Scope`
47+
48+
## 6.1.0 - May 2018
49+
#### AzureRM.Profile
50+
* Fix issue where running 'Clear-AzureRmContext' would keep an empty context with the name of the previous default context, which prevented the user from creating a new context with the old name
51+
52+
#### AzureRM.AnalysisServices
53+
* Enable Gateway assocaite/disassociate operations on AS.
54+
55+
#### AzureRM.ApiManagement
56+
* Added support for ApiVersions, ApiReleases and ApiRevisions
57+
* Added suppport for ServiceFabric Backend
58+
* Added support for Application Insights Logger
59+
* Added support for recognizing 'Basic' sku as a valid sku of Api Management service
60+
* Added support for installing Certificates issued by private CA as Root or CA
61+
* Added support for accepting Custom SSL certificates via KeyVault and Multiple proxy hostnames
62+
* Added support for MSI identity
63+
* Added support for accepting Policies via Url
64+
NOTE: The following cmdlets will be deprecated in future release
65+
- Import-AzureRmApiManagementHostnameCertificate
66+
- New-AzureRmApiManagementHostnameConfiguration
67+
- Set-AzureRmApiManagementHostnames
68+
- Update-AzureRmApiManagementDeployment
69+
70+
#### AzureRM.Batch
71+
* Release new cmdlet Get-AzureBatchPoolNodeCounts
72+
* Release new cmdlet Start-AzureBatchComputeNodeServiceLogUpload
73+
74+
#### AzureRM.Consumption
75+
* Add new parameters Expand, ResourceGroup, InstanceName, InstanceId, Tags, and Top on Cmdlet Get-AzureRmConsumptionUsageDetail
76+
77+
#### AzureRM.DataLakeStore
78+
* Fix example for Export-AzureRmDataLakeStoreChildItemProperties
79+
* Fix null parameter exception for Recurse case in Set-AzureRmDataLakeStoreItemAclEntry
80+
* Fix the help files for Set-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAcl, Remove-AzureRmDataLakeStoreItemAclEntry
81+
82+
#### AzureRM.Network
83+
* Bump up Network SDK version from 18.0.0-preview to 19.0.0-preview
84+
* Added cmdlet to create protocol configuration
85+
- New-AzureRmNetworkWatcherProtocolConfiguration
86+
* Added cmdlet to add a new circuit connection to an existing express route circuit.
87+
- Add-AzureRmExpressRouteCircuitConnectionConfig
88+
* Added cmdlet to remove a circuit connection from an existing express route circuit.
89+
- Remove-AzureRmExpressRouteCircuitConnectionConfig
90+
* Added cmdlet to retrieve a circuit connection
91+
- Get-AzureRmExpressRouteCircuitConnectionConfig
92+
93+
#### AzureRM.ServiceFabric
94+
* Fixed server authentication usage with generated certificates (Issue #5998)
95+
96+
#### AzureRM.Sql
97+
* Updated Auditing cmdlets to allow removing AuditActions or AuditActionGroups
98+
* Fixed issue with Set-AzureRmSqlDatabaseBackupLongTermRetentionPolicy when setting a new flexible retention policy where the command would fail with 'Configure long term retention policy with azure recovery service vault and policy is no longer supported. Please submit request with the new flexible retention policy'.
99+
* Update all Azure Sql Database/ElasticPool Creation/Update related cmdlets to use the new Database API, which support Sku property for scale and tier-related properties.
100+
* The updated cmdlets including:
101+
- New-AzureRmSqlDatabase; Set-AzureRmSqlDatabase
102+
- New-AzureRmSqlElasticPool; Set-AzureRmSqlElasticPool
103+
- New-AzureRmSqlDatabaseCopy
104+
- New-AzureRmSqlDatabaseSecondary
105+
- Restore-AzureRmSqlDatabase
106+
107+
#### AzureRM.TrafficManager
108+
* Update the parameters for 'Get-AzureRmTrafficManagerProfile' so that -ResourceGroupName parameter is required when using -Name parameter.
109+
110+
## 6.0.0 - May 2018
2111
#### General
3112
* Set minimum dependency of modules to PowerShell 5.0
4113

LICENSE.txt

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,25 +184,44 @@ BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT
184184
incurred by, or claims asserted against, such Contributor by reason
185185
of your accepting any such warranty or additional liability.
186186

187-
-------------------END OF LICENSE-------------------------------
187+
-------------------END OF LICENSE------------------------------------------
188188

189-
The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
190189

191-
----------------START OF LICENSE--------------------------------
190+
----------------START OF THIRD PARTY NOTICE--------------------------------
191+
192+
193+
The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
192194

193195
Provided for Informational Purposes Only
194196

195197
AutoMapper
196198

197199
The MIT License (MIT)
198-
199200
Copyright (c) 2010 Jimmy Bogard
200201

202+
201203
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
202204

203205
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
204206

205207
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
206208

207-
-------------END OF LICENSE----------------------------------------
209+
210+
211+
212+
213+
214+
***************
215+
216+
The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
217+
218+
Newtonsoft.Json
219+
220+
The MIT License (MIT)
221+
Copyright (c) 2007 James Newton-King
222+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
223+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
224+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
225+
226+
-------------END OF THIRD PARTY NOTICE----------------------------------------
208227

0 commit comments

Comments
 (0)