Skip to content

Commit 5241fa2

Browse files
author
Maddie Clayton
authored
Merge pull request #6459 from maddieclayton/mergestorage
Merge preview into AzureRM.Storage.Location
2 parents 56a2179 + 815c8f8 commit 5241fa2

File tree

3,180 files changed

+399310
-704440
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,180 files changed

+399310
-704440
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: 44 additions & 72 deletions
Large diffs are not rendered by default.

AzurePowershell.Test.targets

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,106 @@
1-
## 6.1.1 - May 2018
1+
## 6.3.0 - June 2018
2+
#### AzureRM.Profile
3+
* Updated error messages for Enable-AzureRmContextAutoSave
4+
* Create a context for each subscription when running 'Connect-AzureRmAccount' with no previous context
5+
6+
#### Azure.Storage
7+
* Added additional information about -Permissions parameter in help files.
8+
9+
#### AzureRM.Compute
10+
* 'Get-AzureRmVmDiskEncryptionStatus' fixes an issue observed for VMs with no data disks
11+
* Update Compute client library version to fix following cmdlets
12+
- Grant-AzureRmDiskAccess
13+
- Grant-AzureRmSnapshotAccess
14+
- Save-AzureRmVMImage
15+
* Fixed following cmdlets to show 'operation ID' and 'operation status' correctly:
16+
- Start-AzureRmVM
17+
- Stop-AzureRmVM
18+
- Restart-AzureRmVM
19+
- Set-AzureRmVM
20+
- Remove-AzuerRmVM
21+
- Set-AzureRmVmss
22+
- Start-AzureRmVmssRollingOSUpgrade
23+
- Stop-AzureRmVmssRollingUpgrade
24+
- Start-AzureRmVmss
25+
- Restart-AzureRmVmss
26+
- Stop-AzureRmVmss
27+
- Remove-AzureRmVmss
28+
- ConvertTo-AzureRmVMManagedDisk
29+
- Revoke-AzureRmSnapshotAccess
30+
- Remove-AzureRmSnapshot
31+
- Revoke-AzureRmDiskAccess
32+
- Remove-AzureRmDisk
33+
- Remove-AzureRmContainerService
34+
- Remove-AzureRmAvailabilitySet
35+
36+
#### AzureRM.EventGrid
37+
* Remove ValidateNotNullOrEmpty validation conditions for SubjectBeginsWith/SubjectEndsWith in Update-AzureRmEventGridSubscription cmdlet to allow changing these parameters to empty string if needed.
38+
39+
#### AzureRM.KeyVault
40+
* Fix issue where no Tags are being returned when Get-AzureRmKeyVault -Tag is run
41+
42+
#### AzureRM.PolicyInsights
43+
* Public release of Policy Insights cmdlets
44+
- Use API version 2018-04-04
45+
- Add PolicyDefinitionReferenceId to the results of Get-AzureRmPolicyStateSummary
46+
47+
#### AzureRM.RecoveryServices.Backup
48+
* Added -Vault parameter to RecoveryServices.Backup cmdlets. When passed, this will override the Set-AzureRmRecoveryServicesContext cmdlet.
49+
50+
#### AzureRM.Sql
51+
* Updated example in the help file for Get-AzureRmSqlDatabaseExpanded
52+
53+
#### AzureRM.TrafficManager
54+
* Updated the help file for Add-AzureRmTrafficManagerEndpointConfig
55+
56+
#### AzureRM.Websites
57+
* 'Set-AzureRmWebApp' is updated to not overwrite the AppSettings when using -AssignIdentity
58+
* 'New-AzureRmWebAppSlot' is updated to honor AppServicePlan as an optional parameter
59+
60+
## 6.2.1 - June 2018
61+
### AzureRM.OperationalInsights
62+
* Updated PSWorkspace model to allow Network to use type as a parameter
63+
64+
## 6.2.0 - June 2018
65+
#### AzureRM.Profile
66+
* Fix issue where version 10.0.3 of Newtonsoft.Json wasn't being loaded on module import
67+
68+
#### AzureRM.Compute
69+
* VMSS VM Update feature
70+
- Added 'Update-AzureRmVmssVM' and 'New-AzureRmVMDataDisk' cmdlets
71+
- Add VirtualMachineScaleSetVM parameter to 'Add-AzureRmVMDataDisk' cmdlet to support adding a data disk to Vmss VM.
72+
73+
#### AzureRM.DataFactoryV2
74+
* Updated the ADF .Net SDK version to 0.8.0-preview containing following changes:
75+
- Added Configure factory repository operation
76+
- Updated QuickBooks LinkedService to expose consumerKey and consumerSecret properties
77+
- Updated Several model types from SecretBase to Object
78+
- Added Blob Events trigger
79+
80+
### AzureRM.KeyVault
81+
* Update documentation with example output
82+
83+
### AzureRM.Network
84+
* Enable Traffic Analytics parameters on Network Watcher cmdlets
85+
86+
#### AzureRM.Resources
87+
* Fix issue with 'Properties' property of 'PSResource' object(s) returned from 'Get-AzureRmResource'
88+
89+
#### AzureRM.Scheduler
90+
* Fix issue with update ServiceBusQueueJob not setting new Auth values
91+
92+
### AzureRM.Sql
93+
* Updated the following cmdlets with optional LicenseType parameter
94+
- New-AzureRmSqlDatabase; Set-AzureRmSqlDatabase
95+
- New-AzureRmSqlElasticPool; Set-AzureRmSqlElasticPool
96+
- New-AzureRmSqlDatabaseCopy
97+
- New-AzureRmSqlDatabaseSecondary
98+
- Restore-AzureRmSqlDatabase
99+
100+
#### AzureRM.Websites
101+
* 'New-AzureRMWebApp' is updated to use common algorithms from the Strategy library.
102+
103+
## 6.1.1 - May 2018
2104
#### AzureRM.Resources
3105
* 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
4106
- If no values are provided for `Role` or `Scope`, the service principal is created with no permissions

0 commit comments

Comments
 (0)